Flow

APIRendererFlow

Flow {
    width: 90
    spacing.column: 15
    spacing.row: 5
    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

Flow.New(options)

Parameters:
  • options — Objectoptional
Returns:
Flow

Source

Flow::constructor()

Extends:
Item
Returns:
Flow

Source

Flow::padding

Type:
Item.Margin

Flow::onPaddingChange(padding)

Parameters:
  • padding — Item.Margin
Type:
Signal

Source

Flow::spacing

Type:
Item.Spacing

Flow::onSpacingChange(oldValue)

Parameters:
  • oldValue — Item.Spacing
Type:
Signal

Source

Flow::alignment

Type:
Item.Alignment

Flow::onAlignmentChange(oldValue)

Parameters:
  • oldValue — Item.Alignment
Type:
Signal

Source

Flow::includeBorderMargins

Type:
Boolean
Default value:
false

Flow::onIncludeBorderMarginsChange(oldValue)

Parameters:
  • oldValue — Boolean
Type:
Signal

Source

Flow::collapseMargins

Type:
Boolean
Default value:
false

Flow::onCollapseMarginsChange(oldValue)

Parameters:
  • oldValue — Boolean
Type:
Signal

Source