User Tools

Site Tools


DzGridLayout

Script wrapper for QGridLayout.

More...

Inherits :

Constructors

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

Methods

DAZ Script
voidaddLayout ( DzLayout item, Number row, Number col, Number rowSpan=1, Number colSpan=1 )
voidaddWidget ( DzWidget item, 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 )
Deprecated
voidaddMultiCellWidget ( DzWidget item, Number fromRow, Number toRow, Number fromCol, Number toCol )
voidaddMultiCellLayout ( DzLayout item, Number fromRow, Number toRow, Number fromCol, Number toCol )

Detailed Description

A layout that manages child items in a grid of columns/rows.

Constructors


DzGridLayout( DzWidget parent )

Creates a grid layout that manages child items.

Parameter(s):

  • parent - The widget to set as the parent.

DzGridLayout( DzLayout parent )

Creates a grid layout as a sub-layout to another layout.

Parameter(s):

  • parent - The layout to set as the parent.

Methods


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

Adds a layout to the items managed by this layout.

Parameter(s):

  • item - 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 : addWidget( DzWidget item, Number row, Number col, Number rowSpan=1, Number colSpan=1 )

Adds a widget to the items managed by this layout.

Parameter(s):

  • item - 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 layout.

Number : colSpacing( Number col )

Parameter(s):

  • col - The index of the column.

Return Value:

  • The minimum width for the column.

Number : colStretch( Number col )

Parameter(s):

  • col - The index of the column.

Return Value:

  • The relative amount of stretch for the column.

Number : rowCount()

Return Value:

  • The number of rows in this layout.

Number : rowSpacing( Number row )

Parameter(s):

  • row - The index of the row.

Return Value:

  • The minimum height for the row.

Number : rowStretch( Number row )

Parameter(s):

  • row - The index of the row.

Return Value:

  • The relative amount of stretch for the row.

void : setColSpacing( Number col, Number minSize )

Sets the minimum width for a column.

Parameter(s):

  • col - The index of the column.
  • minSize - The minimum width to set.

void : setColStretch( Number col, Number stretch )

Sets the relative amount of stretch for a column.

Parameter(s):

  • col - The index of the column.
  • stretch - The stretch factor to set.

void : setRowSpacing( Number row, Number minSize )

Sets the minimum height for a row.

Parameter(s):

  • row - The index of the row.
  • minSize - The minimum height to set.

void : setRowStretch( Number row, Number stretch )

Sets the relative amount of stretch for a row.

Parameter(s):

  • row - The index of the column.
  • stretch - The stretch factor to set.

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

Deprecated

Exists only to keep old code working. Do not use in new code. Use addWidget() instead.


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

Deprecated

Exists only to keep old code working. Do not use in new code. Use addLayout() instead.