Skip to content

EPopconfirm Popconfirm ​

import EUI 1.0

Examples ​

Popconfirm ​

QML sourceQML
Preview
Run the code to try the component

Edit text, properties, or events, then select Run.

Code runs in this browser Licenses

Properties ​

PropertyDescriptionValues and default
actionsComponentComponent

Component slot for custom actions; null uses the default content. See this page’s examples for delegate context.

Defaultnull
alignmentstring

Alignment of the popup relative to its target.

"start" / "center"
"end"

Default"center"
autoCloseint

Delay, throttling or automatic close time in milliseconds; 0 means no delay or no timed close.

Default0
cancelDisabledbool

Disable the cancel or confirm action.

Defaultfalse
cancelStyleTypeint

Semantic color style.

EStyle.Default
EStyle.Primary
EStyle.Success
EStyle.Info
EStyle.Warning
EStyle.Danger

DefaultEStyle.Default
cancelTextstring

Cancel button text.

DefaultLocalized text
closePolicyenum

Automatic popup closing conditions; flags can be combined.

Popup.* (combine with |)
NoAutoClose
CloseOnPressOutside
CloseOnPressOutsideParent
CloseOnReleaseOutside
CloseOnReleaseOutsideParent
CloseOnEscape

DefaultPopup.CloseOnEscape | Popup.CloseOnPressOutsideParent
confirmDisabledbool

Disable the cancel or confirm action.

Defaultfalse
confirmStyleTypeint

Semantic color style.

EStyle.Default
EStyle.Primary
EStyle.Success
EStyle.Info
EStyle.Warning
EStyle.Danger

DefaultEStyle.Primary
confirmTextstring

Confirm button text.

DefaultLocalized text
contentalias

Content slot; declare QML child objects directly inside the component.

DefaultAlias: customContent.data
contentComponentComponent

Component slot for custom body content; null uses the default content. See this page’s examples for delegate context.

Defaultnull
effectstring

Visual theme of the popup.

"light" / "dark"

Default"light"
enabledbool

Allow interaction; false disables the control.

Defaulttrue
enterablebool

Keep the popup open while the pointer enters it.

Defaulttrue
fallbackPlacementsvar

Alternative popup placements when the preferred position lacks space.

Default[]
focusbool

Whether the popup requests focus.

Defaulttrue
heightreal

Component size in pixels; may be bound to its parent layout.

DefaultimplicitHeight
hideAfterint

Delay, throttling or automatic close time in milliseconds; 0 means no delay or no timed close.

Default120
hideIconbool

Hide the popconfirm icon.

Defaultfalse
iconColorcolor

Icon color.

DefaultDynamic binding
iconSourceint

Icon used by the component.

EIcons.*
0 (no icon)

DefaultEIcons.CIRCLE_QUESTION
modalbool

Use a modal popup that blocks interaction with underlying content.

Defaultfalse
offsetreal

Offset relative to layout, scroll target or popup reference, in pixels.

Default8
persistentbool

Keep popup content instantiated after closing.

Defaulttrue
placementint

Display position of the popup or message.

EPlacement.TopLeft
EPlacement.Top
EPlacement.TopRight
EPlacement.Left
EPlacement.Right
EPlacement.BottomLeft
EPlacement.Bottom
EPlacement.BottomRight

DefaultEPlacement.Bottom
rawContentbool

Interpret content as rich text; enable only for trusted content.

Defaultfalse
referenceItem

Visual item used as the popup reference.

Defaultnull
showAfterint

Delay, throttling or automatic close time in milliseconds; 0 means no delay or no timed close.

Default0
showArrowbool

Show the popup or tour arrow.

Defaultfalse
textstring

Displayed text.

Default""
titlestring

Title text.

DefaultLocalized text
triggerstring

Interaction that opens the popup.

"click" / "hover"
"focus" / "contextmenu"
"manual"

Default"click"
triggerKeysvar

Array of Qt key codes that trigger the action; an empty array disables keyboard triggering.

Default[Qt.Key_Return, Qt.Key_Enter, Qt.Key_Space]
visiblebool

Whether the component is visible.

Defaulttrue
widthreal

Component size in pixels; may be bound to its parent layout.

DefaultimplicitWidth
effectivePlacementintRead only

Actual popup placement after geometry or step configuration.

EPlacement.TopLeft
EPlacement.Top
EPlacement.TopRight
EPlacement.Left
EPlacement.Right
EPlacement.BottomLeft
EPlacement.Bottom
EPlacement.BottomRight

DefaultComputed at runtime
loadedContentaliasRead only

Actual content item instantiated from a Component.

DefaultAlias: contentLoader.item
popperRefaliasRead only

Reference to the internal menu, popup or tooltip.

DefaultAlias: control
referenceEnabledboolRead only

Whether the popup reference is available, enabled or visible.

DefaultComputed at runtime
referenceHeightrealRead only

Actual dimensions of the popup reference.

DefaultComputed at runtime
referenceHoveredboolRead only

Whether the reference item is hovered.

DefaultComputed at runtime
referenceVisibleboolRead only

Whether the popup reference is available, enabled or visible.

DefaultComputed at runtime
referenceWidthrealRead only

Actual dimensions of the popup reference.

DefaultComputed at runtime

Signals ​

SignaturePurpose
canceled()

Emitted when the current operation is cancelled.

confirmed()

Emitted on confirmation; value, when present, is the confirmed value.

Methods ​

SignaturePurpose
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.

Released under the MIT License. Third-party assets retain their own licenses.