Simplified Dialog widget. This class and the associated widget classes are used to build simple dialogs.
More...
#include <qswidget.h>
|
void | newTab (const QString &label) |
| add a new tab to the dialog
|
|
void | newColumn () |
| add a new column to the dialog
|
|
void | addSpace (int space) |
| add spacers to the dialog layout
|
|
void | add (SCRIPT_QSWidget *widget) |
| add widgets to the dialog
|
|
bool | exec () |
| run the dialog in modal mode. Pressing ok accepts the dialog input. Pressing cancel cancels the dialog.
|
|
Simplified Dialog widget. This class and the associated widget classes are used to build simple dialogs.
function sampleDialog()
{
d.title = "Sample Dialog";
inputL.label = "Sample Line Edit";
d.add( inputL );
if ( d.exec() )
{
var sampleText = inputL.
text;
}
}
void Dialog::add |
( |
SCRIPT_QSWidget * |
widget | ) |
|
|
slot |
add widgets to the dialog
void Dialog::addSpace |
( |
int |
space | ) |
|
|
slot |
add spacers to the dialog layout
run the dialog in modal mode. Pressing ok accepts the dialog input. Pressing cancel cancels the dialog.
void Dialog::newColumn |
( |
| ) |
|
|
slot |
add a new column to the dialog
void Dialog::newTab |
( |
const QString & |
label | ) |
|
|
slot |
add a new tab to the dialog
QString Dialog::cancelButtonText |
|
readwrite |
QString Dialog::okButtonText |
|
readwrite |
The documentation for this class was generated from the following file: