EToolTip Tooltip
Examples
Tooltip
Properties
alignmentstringAlignment of the popup relative to its target.
"start" / "center""end"
"center"arrowOffsetrealTooltip arrow offset from the reference position in pixels.
16autoClosealiasDelay, throttling or automatic close time in milliseconds; 0 means no delay or no timed close.
Alias: control.timeoutbackgroundColorcolorBackground color.
Dynamic bindingcontentComponentComponentComponent 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"
"dark"enabledboolAllow interaction; false disables the control.
trueenterableboolKeep the popup open while the pointer enters it.
truefallbackPlacementsvarAlternative popup placements when the preferred position lacks space.
[]focusOnTargetboolRestore focus to the reference control when the tooltip closes.
falseheightrealComponent 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.
0offsetrealOffset relative to layout, scroll target or popup reference, in pixels.
4persistentboolKeep popup content instantiated after closing.
trueplacementintDisplay position of the popup or message.
EPlacement.TopLeftEPlacement.TopEPlacement.TopRightEPlacement.LeftEPlacement.RightEPlacement.BottomLeftEPlacement.BottomEPlacement.BottomRight
EPlacement.ToprawContentboolInterpret content as rich text; enable only for trusted content.
falsereferenceItemVisual item used as the popup reference.
nullshowAfteraliasDelay, throttling or automatic close time in milliseconds; 0 means no delay or no timed close.
Alias: control.delayshowArrowboolShow the popup or tour arrow.
truestyleTypeintSemantic color style.
EStyle.DefaultEStyle.PrimaryEStyle.SuccessEStyle.InfoEStyle.WarningEStyle.Danger
EStyle.DefaulttextColorcolorText color.
Dynamic bindingtriggerstringInteraction that opens the popup.
"click" / "hover""focus" / "contextmenu""manual"
"hover"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.
implicitWidthcontentHoveredboolRead onlyWhether tooltip content is hovered.
Computed at runtimecontentRefItemRead onlyReference to the tooltip content item.
Computed at runtimepopperRefaliasRead onlyReference to the internal menu, popup or tooltip.
Alias: controlreferenceEnabledboolRead onlyWhether the popup reference is available, enabled or visible.
Computed at runtimereferenceHoveredboolRead onlyWhether the reference item is hovered.
Computed at runtimeMethods
hide()Hide the popup content.
updatePopper()Update the tooltip position after its reference control moves.
showForReference()Show the tooltip beside its reference control.