User Tools

Site Tools


DzGridLayout

DAZScript wrapper for QGridLayout.

More...

Inherits :

Constructors

DAZ Script
DzGridLayout ( DzWidget parent )
DzGridLayout ( DzLayout parent )

Methods

DAZ Script
voidaddLayout ( DzLayout layout, Number row, Number col, Number rowSpan=1, Number colSpan=1 )
voidaddMultiCellLayout ( DzLayout layout, Number fromRow, Number toRow, Number fromCol, Number toCol )
voidaddMultiCellWidget ( DzWidget widget, Number fromRow, Number toRow, Number fromCol, Number toCol )
voidaddWidget ( DzWidget widget, Number row, Number col, Number rowSpan=1, Number colSpan=1 )
NumbercolCount ()
NumbercolSpacing ( Number col )
NumbercolStretch ( Number col )
NumberrowCount ()
NumberrowSpacing ( Number row )
NumberrowStretch ( Number row )
voidsetColSpacing ( Number col, Number minSize )
voidsetColStretch ( Number col, Number stretch )
voidsetRowSpacing ( Number row, Number minSize )
voidsetRowStretch ( Number row, Number stretch )

Detailed Description

TODO: Add detailed description.

Constructors


DzGridLayout( DzWidget parent )

Creates a grid layout that manages the children widgets of the given parent widget


DzGridLayout( DzLayout parent )

Creates a grid layout as a sub-layout of the given layout

Methods


void : addLayout( DzLayout layout, Number row, Number col, Number rowSpan=1, Number colSpan=1 )

Adds the given layout to the items managed by this layout

Parameter(s):

  • layout - The layout to add to this layout
  • row - The row to insert the layout into.
  • col - The column to insert the layout into.
  • rowspan - The number of rows the layout should span (1 if not specified)
  • colspan - The number of columns the layout should span (1 if not specified)

void : addMultiCellLayout( DzLayout layout, Number fromRow, Number toRow, Number fromCol, Number toCol )

Deprecated

Use addLayout() instead


void : addMultiCellWidget( DzWidget widget, Number fromRow, Number toRow, Number fromCol, Number toCol )

Deprecated

Use addWidget() instead


void : addWidget( DzWidget widget, Number row, Number col, Number rowSpan=1, Number colSpan=1 )

Adds the given widget to the items managed by this layout

Parameter(s):

  • widget - The widget to add to the layout
  • row - The row to insert the widget into.
  • col - The column to insert the widget into.
  • rowspan - The number of rows the widget should span (1 if not specified)
  • colspan - The number of columns the widget should span (1 if not specified)

Number : colCount()

Return Value:

  • The number of columns in this grid

Number : colSpacing( Number col )

Return Value:

  • The the minimum width for the given column

Number : colStretch( Number col )

Return Value:

  • The relative amount of stretch for the given column

Number : rowCount()

Return Value:

  • The number of rows in this grid

Number : rowSpacing( Number row )

Return Value:

  • The the minimum height for the given row

Number : rowStretch( Number row )

Return Value:

  • The relative amount of stretch for the given row

void : setColSpacing( Number col, Number minSize )

Sets the minimum width for the given column


void : setColStretch( Number col, Number stretch )

Sets the relative amount of stretch for the given column


void : setRowSpacing( Number row, Number minSize )

Sets the minimum height for the given row


void : setRowStretch( Number row, Number stretch )

Sets the relative amount of stretch for the given row