QtUiWidget#
Provides access to widget attributes in the ui files. More...
import Script
Properties#
| Name | |
|---|---|
| string | className |
| bool | isRoot |
| string | name |
Methods#
| Name | |
|---|---|
| addProperty(string name, var value, object attributes = {}) | |
| var | getProperty(string name) |
Property Documentation#
string className#
Name of the widget's class.
bool isRoot#
Read-only property returning true if the widget is the root widget.
string name#
Name of the widget.
Method Documentation#
addProperty(string name, var value, object attributes = {})#
Adds a new property with the given name, value and attributes.
Attributes is a has
widget.setProperty("text", "My text", { "comment": "some comment for translation" });
var getProperty(string name)#
Returns the value of the property name.