EDialog Dialog
Examples
Dynamic content and result
Close guards and dragging
Dialog
Properties
alignCenterboolCenter the layout or text.
Inherited; default trueautofocusboolFocus automatically when shown, subject to availability and popup lifecycle.
truebackgroundColorcolorBackground color.
Dynamic bindingbeforeClosevarCallback before closing; dialogs complete asynchronous checks through done(cancel).
nullborderColorcolorBorder color.
Dynamic bindingcancelTextstringCancel button text.
Localized textcenterboolCenter the layout or text.
falsecloseDelayintDelay, 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.
trueclosePolicyenumAutomatic popup closing conditions; flags can be combined.
Popup.* (combine with |)
NoAutoClose
CloseOnPressOutside
CloseOnPressOutsideParent
CloseOnReleaseOutside
CloseOnReleaseOutsideParent
CloseOnEscape
Dynamic bindingconfirmStyleTypeintSemantic color style.
EStyle.DefaultEStyle.PrimaryEStyle.SuccessEStyle.InfoEStyle.WarningEStyle.Danger
EStyle.PrimaryconfirmTextstringConfirm button text.
Localized textcontentaliasContent slot; declare QML child objects directly inside the component.
Alias: dialogContent.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.
falsedialogRadiusrealCorner radius in pixels.
8draggableboolEnable dragging of the object defined by the current component.
Inherited; default falseenabledboolAllow interaction; false disables the control.
trueenterDurationintAnimation or display duration in milliseconds; the component binding identifies its use.
220exitDurationintAnimation or display duration in milliseconds; the component binding identifies its use.
180focusboolWhether the popup requests focus.
autofocusfullscreenboolUse full-screen display or a full-window overlay.
falseheightrealComponent size in pixels; may be bound to its parent layout.
fullscreen && Overlay.overlay ? Overlay.overlay.height : implicitHeightmodalboolUse a modal popup that blocks interaction with underlying content.
truemodalOverlayColorcolorModal or non-modal overlay color.
Dynamic bindingmodalPenetrableboolAllow input to pass through the non-modal overlay.
falsemodelessOverlayColorcolorModal or non-modal overlay color.
Dynamic bindingopenDelayintDelay, throttling or automatic close time in milliseconds; 0 means no delay or no timed close.
0overflowboolAllow the dialog to be dragged beyond the window bounds.
Inherited; default falseshowCancelButtonboolShow the cancel button.
trueshowCloseboolShow a close or remove button.
trueshowConfirmButtonboolShow the confirm button.
trueshowHeaderboolShow the header area.
truetextstringDisplayed text.
""textColorcolorText color.
Dynamic bindingtitlestringTitle text.
""titleColorcolorTitle color.
Dynamic bindingtoprealDialog top position in pixels, used when not vertically centered.
0visibleboolWhether the component is visible.
truewidthrealComponent size in pixels; may be bound to its parent layout.
Dynamic bindingwindowMarginrealMinimum dialog margin from the window edges in pixels.
16loadedContentaliasRead onlyActual content item instantiated from a Component.
Alias: contentLoader.itemmaximumDialogWidthrealRead onlyMaximum dialog width after subtracting window margins.
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.
Methods
close()Close the component panel or popup.
open()Open the component panel or popup.
resetPosition()Restore the dialog to its initial position.
requestClose()Request popup closure and run the beforeClose check.