-
Notifications
You must be signed in to change notification settings - Fork 11
Widget
The base class for all Widgets. Based on QWidget.
N/A
String className ()
- Returns widget class name as string
String objectName (String value)
-
If called with an argument, set widget's object name to value.
-
Always returns objectName. Returns new name if set.
void close ()
- Close the widget
Bool enabled (Bool enable)
-
If called with an argument, set widget to enable
-
Returns widget enabled property
void hide ()
- Hide widget
void show ()
- Show widget
Widget parent ()
- Return a JS object representation of the widget's parent widget if it has a parent
Widget lookup (String WidgetName)
- Return a JS object representation of the widget's child with specified name if widget has a matching child.
void observe (self, String SignalName, Function fnc)
- Add observere to call function fnc whenever widget receives signal SignalName.
Object property (String Name)
- Returns the value of widget's property with name Name.
Layout/void layout (Layout layout)
-
If called with an argument, set widget's layout to layout and return type is void.
-
If not called with an argument, return widget's layout.
-
NOTE: Once the layout has been set for a widget, it cannot be overwritten. Its contents can be altered, but the layout itself cannot be replaced.