This module contains the implementation of the Qt toolkit.
Base class: BaseToolkit
The QtToolkit class implements the toolkit that uses the Qt GUI library.
Create a button to add an item to a collection.
Parameters: |
|
---|---|
Returns: | the button which will be a QAbstractButton. |
Create a button to initiate browsing the file system.
Returns: | the button which will be a QAbstractButton. |
---|
Create an editor based on a check box.
Parameters: |
|
---|---|
Returns: | the editor which will be an instance of QCheckBox. Any factory properties will be applied to the check box. |
Create an editor based on a combo box.
Parameters: |
|
---|---|
Returns: | the editor which will be an instance of QComboBox. Any factory properties will be applied to the combo box. |
Create a dialog view.
Parameters: |
|
---|---|
Returns: | the view which will be an instance of QDialog. |
Create a button to move an item in a collection down.
Parameters: |
|
---|---|
Returns: | the button which will be a QAbstractButton. |
Return an EditorFactory type object that will create an editor factory that creates editors of a particular type.
Parameter: | widget_type – is the type of the widget. |
---|---|
Returns: | the type object. |
Create an editor that implements a file/directory selector.
Parameters: |
|
---|---|
Returns: | the editor. Any factory properties will be applied to an internal QLineEdit. |
Create an editor for floats based on a spin box.
Parameters: |
|
---|---|
Returns: | the editor which will be an instance of QDoubleSpinBox. Any factory properties will be applied to the spin box. |
Create a view to contain a number of items arranged as a form.
Parameters: |
|
---|---|
Returns: | the view which will be an instance of QFormLayout. |
Get the name of an existing directory from the user.
Parameters: |
|
---|---|
Returns: | the name of the directory or an empty string if there was none. |
Get the name of a file to open from the user.
Parameters: |
|
---|---|
Returns: | the name of the file to open or an empty string if there was none. |
Get a list of names of files to open from the user.
Parameters: |
|
---|---|
Returns: | the list of names. |
Get the name of a file to save from the user.
Parameters: |
|
---|---|
Returns: | the name of the file to save or an empty string if there was none. |
Create a group box view.
Parameters: |
|
---|---|
Returns: | the view. |
Create a view to contain a number of items arranged horizontally.
Parameters: |
|
---|---|
Returns: | the view which will be an instance of QHBoxLayout. |
Display a informational message to the user.
Parameters: |
|
---|
Create an editor based on a line editor.
Parameters: |
|
---|---|
Returns: | the editor which will be an instance of QLineEdit. Any factory properties will be applied to the line editor. |
Create an editor for a list.
Parameters: |
|
---|---|
Returns: | the editor which will be an instance of QListWidget. |
Create a menu.
Parameters: |
|
---|---|
Returns: | the menu which will be an instance of QMenu. |
Create a menu bar.
Returns: | the menu bar which will be an instance of QMenuBar. |
---|
Create a message area.
Parameters: |
|
---|---|
Returns: | the message area which will be an instance of QLabel. |
Create an editor based on a push button.
Parameters: |
|
---|---|
Returns: | the editor which will be an instance of QPushButton. Any factory properties will be applied to the button. |
Ask the user a question with a yes or no answer.
Parameters: |
|
---|---|
Returns: | True if the answer was “yes”. |
Create an editor that implements a set of radio buttons.
Parameters: |
|
---|---|
Returns: | the editor. Any factory properties will be applied to each of the buttons. |
Create a button to remove an item from a collection.
Parameters: |
|
---|---|
Returns: | the button which will be a QAbstractButton. |
Create an editor based on a spin box.
Parameters: |
|
---|---|
Returns: | the editor which will be an instance of QSpinBox. Any factory properties will be applied to the spin box. |
Create a splitter view to contain a number of items.
Parameters: |
|
---|---|
Returns: | the view which will be an instance of QSplitter. |
Create an editor for a table.
Parameters: |
|
---|---|
Returns: | the editor which will be an instance of QTableWidget. |
Create an editor based on a text editor.
Parameters: |
|
---|---|
Returns: | the editor which will be an instance of QTextEdit. Any factory properties will be applied to the text editor. |
Create an editor based on a tool button.
Parameters: |
|
---|---|
Returns: | the editor which will be an instance of QToolButton. Any factory properties will be applied to the button. |
Create a button to move an item in a collection up.
Parameters: |
|
---|---|
Returns: | the button which will be a QAbstractButton. |
Create a view to contain a number of items arranged vertically.
Parameters: |
|
---|---|
Returns: | the view which will be an instance of QVBoxLayout. |
Display a warning message to the user.
Parameters: |
|
---|
Create a wizard view.
Parameters: |
|
---|---|
Returns: | the view. |
Create a wizard page view.
Parameters: |
|
---|---|
Returns: | the view. |