EDrawer Drawer
Examples
Close guards and resizing
Drawer
Properties
autofocusboolFocus automatically when shown, subject to availability and popup lifecycle.
truebeforeClosevarCallback before closing; dialogs complete asynchronous checks through done(cancel).
nullcloseDelayintDelay, throttling or automatic close time in milliseconds; 0 means no delay or no timed close.
0closeIconintIcon used by the component.
EIcons.*
0 (no icon)
EIcons.XMARKcloseOnClickOutsideboolClose when clicking outside the popup.
truecloseOnEscapeboolAllow Escape to close the component.
truecontentaliasContent slot; declare QML child objects directly inside the component.
Alias: body.datacontentComponentComponentComponent slot for custom body content; null uses the default content. See this page’s examples for delegate context.
nulldestroyOnCloseboolDestroy Component-loaded content after closing.
falsedrawerSizevarDrawer size as pixels or a percentage string.
320enabledboolAllow interaction; false disables the control.
trueheightrealComponent size in pixels; may be bound to its parent layout.
Dynamic bindingminimumSizerealMinimum resizable drawer dimension in pixels.
80modalPenetrableboolAllow input to pass through the non-modal overlay.
falseopenDelayintDelay, throttling or automatic close time in milliseconds; 0 means no delay or no timed close.
0resizableboolAllow resizing by dragging.
falseshowCloseboolShow a close or remove button.
trueshowHeaderboolShow the header area.
truetitlestringTitle text.
""visibleboolWhether the component is visible.
truewidthrealComponent size in pixels; may be bound to its parent layout.
Dynamic bindinghorizontalboolRead onlyWhether the resolved layout is horizontal or vertical.
Computed at runtimeloadedContentaliasRead onlyActual content item instantiated from a Component.
Alias: contentLoader.itemresolvedSizerealRead onlyActual drawer size resolved from pixels or percentages.
Computed at runtimeSignals
closeRejected()Emitted when beforeClose rejects a close request.
openAutoFocused()Emitted after the popup opens and finishes focusing its content.
closeAutoFocused()Emitted after the popup closes and restores focus.
resized(real size)Emitted while resizing the drawer; size is its current dimension.
resizeEnded(real size)Emitted when drawer resizing ends; size is its final dimension.
resizeStarted(real size)Emitted when drawer resizing starts; size is its starting dimension.
Methods
close()Close the component panel or popup.
open()Open the component panel or popup.
requestClose()Request popup closure and run the beforeClose check.