EDropdown Dropdown
Examples
Context menu at pointer
Open at a position
Dropdown
Properties
accessibleNamestringName read by assistive technologies; provide a readable name for controls without text.
textautoInsertSpaceboolInsert a space between two Chinese characters in button text.
Inherited; default falseautofocusboolFocus automatically when shown, subject to availability and popup lifecycle.
falsebgboolShow a background for a text button.
falsecheckableboolAllow clicks to toggle the checked state.
falsecheckedboolWhether the control is checked or active.
falsecircleboolUse circular button styling.
falsecolorcolorCustom color; a transparent value usually selects theme or semantic colors.
Dynamic bindingdashedboolUse a dashed border.
Inherited; default falsedurationintDuration of one loading-icon rotation in milliseconds.
2600effectstringVisual theme of the popup.
"light" / "dark"
"light"enabledboolAllow interaction; false disables the control.
truefontfontFont settings for the family, size and text style.
Common fields:
family, pixelSize, pointSize
bold, italic, weight
underline, strikeout
letterSpacing, wordSpacing
application fontheightrealComponent size in pixels; may be bound to its parent layout.
implicitHeighthideOnClickboolClose the dropdown after clicking a menu item.
truehideTimeoutintDelay, throttling or automatic close time in milliseconds; 0 means no delay or no timed close.
150iconComponentComponentComponent slot for custom icon; null uses the default content. See this page’s examples for delegate context.
nulliconSizeintSize of the icon, option or interactive part in pixels.
12iconSourceintIcon used by the component.
EIcons.*
0 (no icon)
EIcons.CHEVRON_DOWNleftIconboolPlace the icon to the left of the text.
falselinkboolUse link button styling.
falseloadingboolWhether the component is loading.
falseloadingComponentComponentComponent slot for custom loading state; null uses the default content. See this page’s examples for delegate context.
nullloadingIconSourceintIcon used by the component.
EIcons.*
0 (no icon)
0maxHeightrealMaximum display height in pixels; 0 adds no extra limit.
0minHeightintMinimum control height in pixels; follows size by default.
Dynamic bindingmodelvarComponent data source; item structure follows the current example and component contract.
[]nativeTypestringButton behavior for normal actions, submitting or resetting a form.
button
submit
reset
"button"paddingSpacingintGap between text and icon in pixels.
6persistentboolKeep popup content instantiated after closing.
trueplacementintDisplay position of the popup or message.
EPlacement.TopLeftEPlacement.TopEPlacement.TopRightEPlacement.LeftEPlacement.RightEPlacement.BottomLeftEPlacement.BottomEPlacement.BottomRight
EPlacement.BottomLeftplainboolUse plain colors.
Inherited; default falseprogressrealProgress value used by progress animation or notification progress display.
-1referenceItemVisual item used as the popup reference.
nullroundboolUse rounded pill button styling.
Inherited; default falseshowArrowboolShow the popup or tour arrow.
falseshowTimeoutintDelay, throttling or automatic close time in milliseconds; 0 means no delay or no timed close.
150sizeintControl size; inherits the nearest EConfigProvider by default.
EStyle.SmallEStyle.MediumEStyle.Large
Inherited; EStyle.Medium by defaultsplitButtonboolSplit the trigger into a main action and dropdown action.
falsestrokeWidthintBorder, divider or progress track width in pixels.
3styleTypeintSemantic color style.
EStyle.DefaultEStyle.PrimaryEStyle.SuccessEStyle.InfoEStyle.WarningEStyle.Danger
Inherited; default EStyle.DefaulttextstringDisplayed text.
""textButtonboolUse text button styling.
Inherited; default falsetriggerstringInteraction that opens the dropdown menu.
"click" / "hover""contextmenu"
"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, Qt.Key_Down]visibleboolWhether the component is visible.
truewidthrealComponent size in pixels; may be bound to its parent layout.
implicitWidthdisplayTextstringRead onlyDisplay text after formatting, progress or badge rules.
Computed at runtimeitemsvarRead onlyNormalized or transformed item list.
Computed at runtimereferenceAvailableboolRead onlyWhether the popup reference is available, enabled or visible.
Computed at runtimeSignals
command(var value, var item)Emitted when a command is invoked, with its value and menu item.
visibleChangedByUser(bool visible)Emitted when user interaction opens or closes the dropdown; visible is its new visibility.
Methods
close()Close the component panel or popup.
open()Open the component panel or popup.
openAt(x, y, item)Open the dropdown at coordinates x and y relative to item.