EPopconfirm Popconfirm
Examples
Popconfirm
Properties
actionsComponentComponentComponent slot for custom actions; null uses the default content. See this page’s examples for delegate context.
nullalignmentstringAlignment of the popup relative to its target.
"start" / "center""end"
"center"autoCloseintDelay, throttling or automatic close time in milliseconds; 0 means no delay or no timed close.
0cancelDisabledboolDisable the cancel or confirm action.
falsecancelStyleTypeintSemantic color style.
EStyle.DefaultEStyle.PrimaryEStyle.SuccessEStyle.InfoEStyle.WarningEStyle.Danger
EStyle.DefaultcancelTextstringCancel button text.
Localized textclosePolicyenumAutomatic popup closing conditions; flags can be combined.
Popup.* (combine with |)
NoAutoClose
CloseOnPressOutside
CloseOnPressOutsideParent
CloseOnReleaseOutside
CloseOnReleaseOutsideParent
CloseOnEscape
Popup.CloseOnEscape | Popup.CloseOnPressOutsideParentconfirmDisabledboolDisable the cancel or confirm action.
falseconfirmStyleTypeintSemantic 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: customContent.datacontentComponentComponentComponent slot for custom body content; null uses the default content. See this page’s examples for delegate context.
nulleffectstringVisual theme of the popup.
"light" / "dark"
"light"enabledboolAllow interaction; false disables the control.
trueenterableboolKeep the popup open while the pointer enters it.
truefallbackPlacementsvarAlternative popup placements when the preferred position lacks space.
[]focusboolWhether the popup requests focus.
trueheightrealComponent size in pixels; may be bound to its parent layout.
implicitHeighthideAfterintDelay, throttling or automatic close time in milliseconds; 0 means no delay or no timed close.
120hideIconboolHide the popconfirm icon.
falseiconColorcolorIcon color.
Dynamic bindingiconSourceintIcon used by the component.
EIcons.*
0 (no icon)
EIcons.CIRCLE_QUESTIONmodalboolUse a modal popup that blocks interaction with underlying content.
falseoffsetrealOffset relative to layout, scroll target or popup reference, in pixels.
8persistentboolKeep popup content instantiated after closing.
trueplacementintDisplay position of the popup or message.
EPlacement.TopLeftEPlacement.TopEPlacement.TopRightEPlacement.LeftEPlacement.RightEPlacement.BottomLeftEPlacement.BottomEPlacement.BottomRight
EPlacement.BottomrawContentboolInterpret content as rich text; enable only for trusted content.
falsereferenceItemVisual item used as the popup reference.
nullshowAfterintDelay, throttling or automatic close time in milliseconds; 0 means no delay or no timed close.
0showArrowboolShow the popup or tour arrow.
falsetextstringDisplayed text.
""titlestringTitle text.
Localized texttriggerstringInteraction that opens the popup.
"click" / "hover""focus" / "contextmenu""manual"
"click"triggerKeysvarArray of Qt key codes that trigger the action; an empty array disables keyboard triggering.
[Qt.Key_Return, Qt.Key_Enter, Qt.Key_Space]visibleboolWhether the component is visible.
truewidthrealComponent size in pixels; may be bound to its parent layout.
implicitWidtheffectivePlacementintRead onlyActual popup placement after geometry or step configuration.
EPlacement.TopLeftEPlacement.TopEPlacement.TopRightEPlacement.LeftEPlacement.RightEPlacement.BottomLeftEPlacement.BottomEPlacement.BottomRight
Computed at runtimeloadedContentaliasRead onlyActual content item instantiated from a Component.
Alias: contentLoader.itempopperRefaliasRead onlyReference to the internal menu, popup or tooltip.
Alias: controlreferenceEnabledboolRead onlyWhether the popup reference is available, enabled or visible.
Computed at runtimereferenceHeightrealRead onlyActual dimensions of the popup reference.
Computed at runtimereferenceHoveredboolRead onlyWhether the reference item is hovered.
Computed at runtimereferenceVisibleboolRead onlyWhether the popup reference is available, enabled or visible.
Computed at runtimereferenceWidthrealRead onlyActual dimensions of the popup reference.
Computed at runtimeSignals
canceled()Emitted when the current operation is cancelled.
confirmed()Emitted on confirmation; value, when present, is the confirmed value.
Methods
hide()Hide the popup content.
toggle()Toggle the expanded or selected state; pass the target identifier when required.
show()Show the popup content.
reject()Cancel the current confirmation.
accept()Confirm the current action; invalid input is not submitted.