|Home | Tutorial | Classes | Functions | Qt Scripter | Language | Library | Qt API | QSA Articles | Qt Script for Applications | ![]() |
[Prev: Creating Scripts Using Qt Script for Applications] [Home]
To get access to the QSA Input Dialog framework in the interpreter you need to instanciate the QSInputDialogFactory and add it to the interpreter, using the function QSInterpreter::addObjectFactory(QSObjectFactory *).
QSProject project; QSInputDialogFactory inputDialogFactory; QSInterpreter *interpreter = project.interpreter(); interpreter->addObjectFactory( &inputDialogFactory );
The following is a list of QSA's public classes and their properties:
The CheckBox widget provides a checkbox with a text label. CheckBox is an option button; it can be switched on (checked) or off (unchecked).
Inherits QSWidget.
text : String - This property holds the text shown on the button.
checked : Boolean - This property holds whether the checkbox is checked.
The ComboBox widget is a combined button and popup list. A combobox is a selection widget which displays the current item and can pop up a list of items. A combobox may be editable in which case the user can enter arbitrary strings.
Inherits QSLabeled.
editable : Boolean - This property holds whether the combobox is editable. This property's default is FALSE.
itemList : Array - The list of items in a combobox.
selectedItem : Number - The index of the current item in the combobox
The DateEdit class provides a date editor. DateEdit allows the user to edit dates by using the keyboard or the arrow keys to increase/decrease date values. The arrow keys can be used to move from section to section within the DateEdit box. Dates appear in accordance with the local date/time settings or in year, month, day order if the system doesn't provide this information.
Inherits QSLabeled.
date : Date - This property holds the editor's date value.
order : Order - This property holds the order in which the year, month and day appear.
maximum : Date- This property holds the editor's maximum value.
minimum : Date- This property holds the editor's minimum value.
The Dialog class is the base class of dialog windows.A dialog window is a top-level window mostly used for short-term tasks and brief communications with the user. Dialogs may be modal or modeless.
Inherits QSWidget.
caption : String - This property holds the window caption (title).
cancelButtonText : String - This property holds the text shown on the cancel button.
okButtonText: String - This property holds the text shown on the ok button.
width : int - This property holds the width of the widget excluding any window frame.
The Input class provides a simple convenience dialog to get a single value from the user.
Inherits QSDialog.
caption : String - This property holds the window caption (title).
The GroupBox widget provides a group box frame with a title and it displays various other widgets inside itself.
Inherits QSWidget.
title : String - This property holds the group box title text.
The QLineEdit widget is a one-line text editor.
Inherits QSLabeled.
text : String - This property holds the selected text.
The NumberEdit class provides range checking of floating-point numbers. NumberEdit provides an upper bound, a lower bound and a limit on the number of digits after the decimal point.
Inherits QSLabeled.
decimals : int - This property holds the number edits's maximum number of digits after the decimal point.
maximum : double - This property holds the number edit's maximum acceptable value.
minimum : double -This property holds the number edit's minimum acceptable value.
number : int- This property holds the number edit's input value.
The RadioButton widget provides a radio button with a text label. RadioButton is an option button; it can be switched on (checked) or off (unchecked).
Inherits QSWidget.
text : String - This property holds the text shown on the button.
checked : Boolean - This property holds whether the radio button is checked.
The SpinBox class provides a spin box widget (spin button). SpinBox allows the user to choose a value either by clicking the up/down buttons to increase/decrease the value currently displayed or by typing the value directly into the spin box. If the value is entered directly into the spin box, Enter (or Return) must be pressed to apply the new value. The value is usually an integer.
Inherits QSLabeled.
maximum : int - This property holds the maximum value of the spin box.
minimum : int - This property holds the minimum value of the spin box.
number : int - This property holds the value of the spin box.
The QTextEdit widget provides a powerful single-page rich text editor.
Inherits QSWidget.
text : String - This property returns the text of the TextEdit.
The TimeEdit class provides a time editor. TimeEdit allows the user to edit times by using the keyboard or the arrow keys to increase/decrease time values. The arrow keys can be used to move from section to section within the TimeEdit box.
Inherits QSLabeled.
maximum : Time - This property holds the maximum time value.
minimum : Time - This property holds the minimum time value.
showAMPM : Display - This property holds the AM/PM section that is displayed in the time edit.
showSeconds : Display - This property holds the seconds section that is displayed in the time edit.
time : Time - This property holds the editor's time value.
The Widget class is the base class of all user interface objects. The widget is the atom of the user interface: it receives mouse, keyboard and other events from the window system, and paints a representation of itself on the screen. Every widget is rectangular, and they are sorted in a Z-order. A widget is clipped by its parent and by the widgets in front of it.
tooltip : - This property holds tool tips (balloon help) for any widget or rectangular part of a widget.
whatsThis : - This property holds a simple description of any widget, i.e. answering the question "What's this?"
Copyright © 2001-2003 Trolltech | Trademarks | QSA version 1.0.0-beta2
|