User Tools

Site Tools


DzLayout

Script wrapper for QLayout.

More...

Inherits :

Inherited By : DzBoxLayout and DzGridLayout

Properties

DAZ Script
Numbermargin
Numberspacing
Deprecated
BooleanautoAdd

Methods

DAZ Script
voidaddWidget ( DzWidget item )
QLayoutgetLayout ()

Detailed Description

This is an abstract base class that provides general functionality for script interface layout components.

Properties


Number : margin

Holds the common width (in pixels) of the outside border between the items in this layout and the parent. If the width of the boarder is not common for each edge, this value will be -1. Setting this value sets a common width for each edge.


Number : spacing

Holds the spacing (in pixels) between the items in this layout.


Boolean : autoAdd

Deprecated

Exists only to keep old code working. Do not use in new code. To add a child widget use the addWidget() function provided by the relevant subclass. To add a child layout, use the addLayout() function provided by the relevant subclass.

Holds whether or not children of the parent widget are automatically added to the layout.

Methods


void : addWidget( DzWidget item )

Adds a widget to the items managed by this layout.

Parameter(s):

  • item - The widget to add.

QLayout : getLayout()

Return Value:

  • The wrapped QLayout.