EAffix Affix
Examples
Affix
Properties
appendToItemObject to which the overlay is attached.
nullcontentaliasContent slot; declare QML child objects directly inside the component.
Alias: contentHost.dataenabledboolAllow interaction; false disables the control.
trueheightrealComponent size in pixels; may be bound to its parent layout.
implicitHeightoffsetrealOffset relative to layout, scroll target or popup reference, in pixels.
0positionintFix the component to the top or bottom of the scrolling area.
EPlacement.TopEPlacement.Bottom
EPlacement.ToprevisionintInternal data or geometry revision that triggers dependent bindings.
0targetItemTarget item for scrolling, positioning or the loading overlay.
nullteleportedboolMove affixed content to a separate overlay target.
falsevisibleboolWhether the component is visible.
truewidthrealComponent size in pixels; may be bound to its parent layout.
implicitWidthzIndexintOverlay or watermark stacking order.
100fixedboolRead onlyWhether affix content is currently fixed.
Computed at runtimetargetPositionpointRead onlyComputed target coordinates and dimensions for affix or tour.
Fields: x, y
Computed at runtimeSignals
changed(bool fixed)Emitted when the affix state changes; fixed indicates whether the content is pinned.
scrolled(real top, bool fixed)Emitted when the target scrolls; top is its scroll position and fixed is the affix state.
Methods
update()Refresh the affix state and pinned position.