Bindings
A binding assigns an expression to a property of the element in whose body it appears.
It has the form of a property name, followed by :, an expression, and ;.
export component Example inherits Window { Rectangle { background: #2a6e3f; }}slint
The name shall refer to a property of the enclosing element.
An expression whose type is not the type of the property binds to it only when a conversion applies.
The type of the expression shall be the type of the property, or convert to it.
A binding can also hold a code block,
and the <=> operator links two properties.
© 2026 SixtyFPS GmbH