Script wrapper for QWidget.
Inherits :
Inherited By : DzButton, DzColorWgt, DzComboBox, DzComboEdit, DzDateTimeEdit, DzDial, DzDialog, DzDynamicDividerWgt, DzEnumSlider, DzFloatSlider, DzGroupBox, DzHeader, DzIntSlider, DzLabel, DzLCDNumber, DzLineEdit, DzNodeSelectionComboBox, DzPathComboBox, DzPopupMenu, DzPropertySelectionComboBox, DzScrollArea, DzScrollView (deprecated), DzSplitter, DzTabWidget, DzTextEdit, DzUiWidget and videoplayer_dz
DAZ Script |
---|
DzWidget ( DzWidget parent ) |
DAZ Script | |
---|---|
DzWidget | findChildOfWidget ( String name ) |
Array | getChildrenOfWidget ( String name=“” ) |
DzLayout | getLayout () |
QWidget | getWidget () |
Pixmap | grab ( Rect rectangle ) |
Pixmap | grab ( Number x=0, Number y=0, Number width=-1, Number height=-1 ) |
void | hide () |
Point | mapFrom ( DzWidget parent, Point pos ) |
Point | mapFromGlobal ( Point pos ) |
Point | mapFromParent ( Point pos ) |
Point | mapTo ( DzWidget parent, Point pos ) |
Point | mapToGlobal ( Point pos ) |
Point | mapToParent ( Point pos ) |
void | reparent ( DzWidget parent, Point pnt, Boolean showIt=false ) |
void | setFixedHeight ( Number height ) |
void | setFixedSize ( Number width, Number height ) |
void | setFixedWidth ( Number width ) |
void | setGeometry ( Number x, Number y, Number w, Number h ) |
void | show () |
Base class for all wrapped widgets. This is an abstract base class that provides general functionality for script widget components.
Enumerated values for describing how widgets should be aligned.
Since:
—–
Enumerated values for describing how widgets should be oriented.
Since:
—–
Enumerated values for describing the order that items should be sorted.
Since:
—–
Enumerated values that describe how the text string is elided.
Since:
—–
Enumerated values for describing text modifiers.
Since:
—–
Enumerated values that describe how a label reacts to user input.
Since:
Holds the number of different colors available for the widget. (Read Only)
Since:
Holds the bit depth (number of bit planes) of the widget. (Read Only)
Since:
Holds whether the widget is enabled.
Holds the Font for the widget and all child widgets that do not have a custom font of their own.
Holds the x position of the widget, relative to the desktop. (Read Only)
Holds the y position of the widget, relative to the desktop. (Read Only)
Holds the height of the widget.
Holds the height of the widget in millimeters. (Read Only)
Since:
Holds the horizontal resolution of the widget in dots per inch. (Read Only)
Since:
Holds the vertical resolution of the widget in dots per inch. (Read Only)
Since:
Holds the maximum height of the widget.
Holds the maximum width of the widget.
Holds the minimum height of the widget.
Holds the minimum width of the widget.
Holds the Palette for the widget and all child widgets that do not have a custom palette of their own.
Color : paletteBackgroundColor
Holds the background color of the widget.
Pixmap : paletteBackgroundPixmap
Holds the background Pixmap of the widget.
Color : paletteForegroundColor
Holds the foreground color of the widget.
Holds the horizontal resolution of the widget in dots per inch. (Read Only)
Since:
Holds the vertical resolution of the widget in dots per inch. (Read Only)
Since:
Holds the tool tip text for the widget and all child widgets that do not have a custom tool tip text of their own.
Holds the “Whats This” text for the widget and all child widgets that do not have a custom “Whats This” text of their own.
Holds the width of the widget.
Holds the width of the widget in millimeters. (Read Only)
Since:
Holds the x position of the widget, relative to its parent.
Holds the y position of the widget, relative to its parent.
DzWidget( DzWidget parent )
Creates a new widget as a child of the given parent widget.
Parameter(s):
DzWidget : findChildOfWidget( String name )
Return Value:
name
, otherwise undefined
.Array : getChildrenOfWidget( String name=“” )
Return Value:
Return Value:
Return Value:
Pixmap : grab( Rect rectangle )
Paints the widget, restricted by the given rectangle, into a pixmap. If the widget has any children, they are also painted in the appropriate positions.
Parameter(s):
Return Value:
Since:
Pixmap : grab( Number x=0, Number y=0, Number width=-1, Number height=-1 )
Paints the widget, restricted by the given rectangle, into a pixmap. If the widget has any children, they are also painted in the appropriate positions.
Parameter(s):
Return Value:
Since:
void : hide()
Hide the widget; make it invisible.
Point : mapFrom( DzWidget parent, Point pos )
Translates the widget coordinate pos
from the coordinate system of parent
to this widget's coordinate system. parent
must not be undefined
and must be a parent of the calling widget.
Parameter(s):
Since:
Point : mapFromGlobal( Point pos )
Translates the global screen coordinate pos
to widget coordinates.
Parameter(s):
See Also:
Since:
Point : mapFromParent( Point pos )
Translates the widget coordinate pos
from the coordinate system of the parent widget to this widget's coordinate system.
Parameter(s):
Since:
Point : mapTo( DzWidget parent, Point pos )
Translates the widget coordinate pos
to the coordinate system of parent
. parent
must not be undefined
and must be a parent of the calling widget.
Parameter(s):
Since:
Point : mapToGlobal( Point pos )
Translates the widget coordinate pos
to global screen coordinates. For example, mapToGlobal( Point(0, 0) ) would give the global coordinates of the top-left pixel of the widget.
Parameter(s):
Since:
Point : mapToParent( Point pos )
Translates the widget coordinate pos
to a coordinate in the parent widget.
Parameter(s):
Since:
void : reparent( DzWidget parent, Point pnt, Boolean showIt=false )
Reparents the widget.
Parameter(s):
true
, show() is called on the widget after it is reparented.void : setFixedHeight( Number height )
Sets a fixed height for the widget.
void : setFixedSize( Number width, Number height )
Sets a fixed width and height for the widget.
void : setFixedWidth( Number width )
Sets a fixed width for the widget.
void : setGeometry( Number x, Number y, Number w, Number h )
Sets the position and size for the widget (relative to its parent).
void : show()
Show the widget; make it visible if its parent is visible.