User Tools

Site Tools


DzBoxLayout

Script wrapper for QBoxLayout.

More...

Inherits :

Inherited By : DzHBoxLayout and DzVBoxLayout

Enumerations

Properties

DAZ Script
Directiondirection

Constructors

DAZ Script
DzBoxLayout ( DzWidget parent, Direction direction=LeftToRight )
DzBoxLayout ( DzLayout parent, Direction direction=LeftToRight )

Methods

DAZ Script
voidaddLayout ( DzLayout item, Number stretch=0 )
voidaddSpacing ( Number size )
voidaddStretch ( Number stretch=0 )
voidaddStrut ( Number size )
voidaddWidget ( DzWidget item, Number stretch=0 )

Detailed Description

A layout that manages child items in a horizontal or vertical box.

Enumerations


: Direction

Used to determine the direction of a box layout.

  • LeftToRight - Horizontal from left to right.
  • RightToLeft - Horizontal from right to left.
  • TopToBottom - Vertical from top to bottom.
  • BottomToTop - Vertical from bottom to top.

Properties


Direction : direction

Holds the direction of the layout.

Constructors


DzBoxLayout( DzWidget parent, Direction direction=LeftToRight )

Creates a box layout that manages child items.

Parameter(s):

  • parent - The widget to set as the parent.
  • direction - The direction of the layout.

DzBoxLayout( DzLayout parent, Direction direction=LeftToRight )

Creates a box layout as a sub-layout of another layout.

Parameter(s):

  • parent - The layout to set as the parent.
  • direction - The direction of the layout.

Methods


void : addLayout( DzLayout item, Number stretch=0 )

Adds a layout to the items managed by this layout.

Parameter(s):

  • item - The layout to add.
  • stretch - The stretch factor to set.

void : addSpacing( Number size )

Adds a non-stretchable space to the end of this layout.

Parameter(s):

  • size - The size to set.

void : addStretch( Number stretch=0 )

Adds a stretchable space to the end of this layout.

Parameter(s):

  • stretch - The stretch factor to set.

void : addStrut( Number size )

Limits the minimum dimension perpendicular to the direction of this layout.

Parameter(s):

  • size - The size to set.

void : addWidget( DzWidget item, Number stretch=0 )

Adds a widget to the items managed by this layout.

Parameter(s):

  • item - The widget to add.
  • stretch - The stretch factor to set.