Skip to content
ben-sangster edited this page Nov 10, 2010 · 7 revisions

Description

JS binding for QInputDialog. Inherits from Dialog.

Signals

finished (value)

  • Functions observing this signal will get a single argument that could have one of three types, depending on the format of the dialog.

  • If the dialog is taking integer input, value will be an integer. If double input, then value will be a double. If text input, value will be a string.

doubleValueChanged (double value)

  • Called when the value has changed, even if the "Ok" button has not been pressed.

doubleValueSelected (double value)

  • Returns the current value when the "Ok" button is pressed.

intValueChanged (int value)

  • Called when the value has changed, even if the "Ok" button has not been pressed.

intValueSelected (int value)

  • Returns the current value when the "Ok" button is pressed.

textValueChanged (String value)

  • Called when the value has changed, even if the "Ok" button has not been pressed.

textValueSelected (String value)

  • Returns the current value when the "Ok" button is pressed.

Functions

double doubleDecimals (double value)

double doubleMaximum (double value)

double doubleMinimum (double value)

double doubleValue (double value)

int intMaximum (int value)

int intMinimum (int value)

int intStep (int value)

int intValue (int value)

String labelText (String value)

String okButtonText (String value)

String cancelButtonText (String value)

String textValue (String value)

String[] comboBoxItems (String[] list)

bool comboBoxEditable (bool editable)

API

inputDialog

Clone this wiki locally