QtUiDocument#
Provides access to the content of a Ui file (Qt designer file). More...
import Script
Properties#
Name | |
---|---|
array<QtUiWidget> | widgets |
Methods#
Name | |
---|---|
QtUiWidget | addCustomWidget(string className, string baseClassName, string header, bool isContainer) |
QtUiWidget | addWidget(string className, string name, QtUiWidget parent) |
QtUiWidget | findWidget(string name) |
preview() |
Property Documentation#
array<QtUiWidget> widgets#
List of all widgets in the ui file.
Method Documentation#
QtUiWidget addCustomWidget(string className, string baseClassName, string header, bool isContainer)#
Adds a new custom widget to the ui file.
The className
is the name of the custom widget, baseClassName
is the name of the base class, header
is the
include. If isContainer
is true, the widget is a container.
The header
should be in the form of <foo.h>
or "foo.h"
.
QtUiWidget addWidget(string className, string name, QtUiWidget parent)#
Creates a new widget with the given className
and name
, and adds it to the parent
widget.
If parent
is null, it creates the top level widget (there can only be one).
QtUiWidget findWidget(string name)#
Returns the widget for the given name
.
preview()#
Opens a dialog to preview the current ui file.