MessageBox Class Reference

The MessageBox JavaScript class. A simplified version of the MessageBox Qt dialog. More...

Public Slots

static QScriptValue information (String text, int button0, int button1, int button2, String title, QWidget *parent)
 An information box. By default has one button labeled 'OK'. More...
 
static QScriptValue warning (String text, int button0, int button1, int button2, String title, QWidget *parent)
 A warning box. By default has two buttons labeled 'Abort' and 'Retry'. More...
 
static QScriptValue critical (String text, int button0, int button1, int button2, String title, QWidget *parent)
 A critical box. By default has one button labeled 'Retry'. More...
 

Detailed Description

The MessageBox JavaScript class. A simplified version of the MessageBox Qt dialog.

MessageBox.warning(" This is a warning.");

Member Function Documentation

◆ critical

static QScriptValue MessageBox::critical ( String  text,
int  button0,
int  button1,
int  button2,
String  title,
QWidget *  parent 
)
staticslot

A critical box. By default has one button labeled 'Retry'.

Parameters
text: The text to display in the information box body.
button0: Default = 1. 1 to display the first button.
button1: Default = 0. 1 to display the second button.
button2: Default = 0. 1 to display the third button.
title: The text to display in the title.
parent: The parent widget to inherit.
Note
Each of these paremeters are optional except for text.

◆ information

static QScriptValue MessageBox::information ( String  text,
int  button0,
int  button1,
int  button2,
String  title,
QWidget *  parent 
)
staticslot

An information box. By default has one button labeled 'OK'.

Parameters
text: The text to display in the information box body.
button0: Default = 1. 1 to display the first button.
button1: Default = 0. 1 to display the second button.
button2: Default = 0. 1 to display the third button.
title: The text to display in the title.
parent: The parent widget to inherit.
Note
Each of these paremeters are optional except for text.

◆ warning

static QScriptValue MessageBox::warning ( String  text,
int  button0,
int  button1,
int  button2,
String  title,
QWidget *  parent 
)
staticslot

A warning box. By default has two buttons labeled 'Abort' and 'Retry'.

Parameters
text: The text to display in the information box body.
button0: Default = 1. 1 to display the first button.
button1: Default = 0. 1 to display the second button.
button2: Default = 0. 1 to display the third button.
title: The text to display in the title.
parent: The parent widget to inherit.
Note
Each of these paremeters are optional except for text.