Grid

APIRendererGrid

Grid {
    spacing.column: 15
    spacing.row: 5
    columns: 2
    Rectangle { color: 'blue'; width: 60; height: 50; }
    Rectangle { color: 'green'; width: 20; height: 70; }
    Rectangle { color: 'red'; width: 50; height: 30; }
    Rectangle { color: 'yellow'; width: 20; height: 20; }
}

Source

Grid.New(options)

Parameters:
  • options — Objectoptional
Returns:
Grid

Source

Grid::constructor()

Extends:
Item
Returns:
Grid

Source

Grid::padding

Type:
Item.Margin

Grid::onPaddingChange(padding)

Parameters:
  • padding — Item.Margin
Type:
Signal

Source

Grid::columns

Type:
Integer
Default value:
2

Grid::onColumnsChange(oldValue)

Parameters:
  • oldValue — Integer
Type:
Signal

Source

Grid::rows

Type:
Number
Default value:
Infinity

Grid::onRowsChange(oldValue)

Parameters:
  • oldValue — Number
Type:
Signal

Source

Grid::spacing

Type:
Item.Spacing

Grid::onSpacingChange(oldValue)

Parameters:
  • oldValue — Item.Spacing
Type:
Signal

Source

Grid::alignment

Type:
Item.Alignment

Grid::onAlignmentChange(oldValue)

Parameters:
  • oldValue — Item.Alignment
Type:
Signal

Source

Grid::includeBorderMargins

Type:
Boolean
Default value:
false

Grid::onIncludeBorderMarginsChange(oldValue)

Parameters:
  • oldValue — Boolean
Type:
Signal

Source