Common Properties
Properties
These properties are valid on all visible items and can be used to specify constraints when used in layouts:
col, row
int default: 0
See GridLayout.
colspan, rowspan
int default: 0
See GridLayout.
horizontal-stretch, vertical-stretch
float (in-out)
default: 0.0
Specify how much relative space these elements are stretching in a layout. When 0, this means that the elements won’t be stretched unless all elements are 0. Builtin widgets have a value of either 0 or 1.
max-width, max-height
length default: 0px
The maximum size of an element.
min-width, min-height
length default: 0px
The minimum size of an element.
preferred-width, preferred-height
length default: 0px
The preferred size of an element.
© 2024 SixtyFPS GmbH