Script
|
The UILoader interface allows the user to load pre-defined Qt forms that define Qt widgets (generally built within Qt Designer). This allows users to build complex dialogs, using all of the pre-defined widgets that Qt4.8 supports. See Qt documentation for further details: http://qt-project.org/doc/qt-4.8. More...
#include <uiinterface.h>
Public Slots | |
static QScriptValue | load (QScriptContext *context, QScriptEngine *engine) |
Takes a path to a predefined Qt widget form and loads that form. | |
static QScriptValue | exec (QScriptContext *context, QScriptEngine *engine) |
quivalent of QAppliction::exec for those scripts that wish to run their loaded UI as a separate app. | |
The UILoader interface allows the user to load pre-defined Qt forms that define Qt widgets (generally built within Qt Designer). This allows users to build complex dialogs, using all of the pre-defined widgets that Qt4.8 supports. See Qt documentation for further details: http://qt-project.org/doc/qt-4.8.
This is an example of how to build a dialog using a predefined Qt designer file ( *.ui ) All widgets may be addressed directly, but through nested names. That is, if you have a checkbox inside a tab inside a dialog, you should address the widget as dialog.tab.checkbox Once you've figured out its name, you are allowed to modify all of its properties, plus you have access to both its signals and slots ( as well as its inherited properties, signals and slots )
This example and the predefined form are part of the installation, so it can be run in the software to see what it does. Look for lightTableExampleUsingPredefinedUI. It will display a non-modal widget that allows the adjustment of the light table settings in the camera view. Please refer to Qt documentation for the list of accessible widget properties.
|
staticslot |
quivalent of QAppliction::exec for those scripts that wish to run their loaded UI as a separate app.
|
staticslot |
Takes a path to a predefined Qt widget form and loads that form.