Grid

API ReferenceRendererGrid

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()

Static method of
Grid
Parameters
  • component — Componentoptional
  • options — Objectoptional
Returns
Grid

Source


constructor()

Extends
Item
Returns
Grid

Source


padding

Type
Item.Margin

onPaddingChange()

Parameters
  • padding — Item.Margin
Type
Signal

Source


columns

Type
Integer
Default
2

onColumnsChange()

Parameters
  • oldValue — Integer
Type
Signal

Source


rows

Type
Number
Default
Infinity

onRowsChange()

Parameters
  • oldValue — Number
Type
Signal

Source


spacing

Type
Item.Spacing

onSpacingChange()

Parameters
  • oldValue — Item.Spacing
Type
Signal

Source


alignment

Type
Item.Alignment

onAlignmentChange()

Parameters
  • oldValue — Item.Alignment
Type
Signal

Source


includeBorderMargins

Type
Boolean
Default
false

onIncludeBorderMarginsChange()

Parameters
  • oldValue — Boolean
Type
Signal

Source

results matching ""

    No results matching ""