EDeferred Deferred
Examples
Scroll into view
Repeated entry
Once only
Custom viewport
Preload margin
Properties
contentaliasContent Component instantiated after entering the viewport.
loader.sourceComponentmarginrealExtra distance for preloading before viewport entry, in pixels.
0onceboolRetain content after its first load; false unloads it outside the viewport.
trueviewportItemOptional viewport; ancestor clipping boundaries still apply.
nullactivatedboolWhether deferred content has been activated.
falseasynchronousboolInstantiate QML content asynchronously.
falseplaceholderHeightrealHeight reserved before content is loaded.
120itemaliasRead onlyCurrently loaded content instance; null before loading.
loader.itemstatusintRead onlyUnderlying Loader status: Null, Ready, Loading, or Error.
"" / "success""warning" / "exception"
loader.statusinViewportboolRead onlyWhether the control intersects the visible viewport.
intersectsViewport()Signals
exited()Emitted when the component leaves the viewport.
loaded()Emitted after deferred content is first loaded.
entered()Emitted when the component enters the viewport.
Methods
reset()Restore the initial component state.