class
Layout
public abstract class Layout : QObject Properties
| Name | Type | Description |
|---|---|---|
Spacing | Single | The amount of space between items |
SizeConstraint | SizeConstraint | How the layout should resize the owning widget |
Enabled | Boolean | An enabled layout adjusts dynamically to changes; a disabled layout acts as if it did not exist. |
Alignment | TextFlag | An enabled layout adjusts dynamically to changes; a disabled layout acts as if it did not exist. |
OuterRect | Rect | The rect of this layout including margins |
InnerRect | Rect | The rect of this layout excluding margins |
Margin | Margin | The amount of space to leave free around the outside of the layout |
Methods
Void Clear(Boolean deleteWidgets) Remove all widgets from this layout, without deleting them outright.
deleteWidgets — Also delete all the widgets. virtual T AddLayout(T layout, Int32 stretch = 0) virtual T Add(T widget) virtual T Add(T widget, Int32 stretch) static Layout Row(Boolean reversed = False) static Layout Column(Boolean reversed = False) static GridLayout Grid() static Layout Flow() Layout AddFlow(Int32 stretch = 0) Layout AddRow(Int32 stretch = 0, Boolean reversed = False) Layout AddColumn(Int32 stretch = 0, Boolean reversed = False) virtual Void AddSpacingCell(Single size) Add a spacing item
virtual Void AddStretchCell(Int32 stretch = 0) Add a stretch item
Separator AddSeparator(Boolean light = False) Adds a 1 pixel line