EToolBar Toolbar
Examples
Common actions
Overflow menu
Toggle actions
Show icons only
Share a Qt Action
Properties
alignmentintHorizontal alignment of visible actions: left, center, or right.
"start" / "center""end"
Qt.AlignLeftenabledboolAllow 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
Qt.font({ pixelSize: 16 })heightrealComponent size in pixels; may be bound to its parent layout.
implicitHeightmodelvarItem model; fields are described in the examples and usage guide.
[]showTextboolShow action labels; icon mode retains accessible names.
truesizeintText size.
EStyle.SmallEStyle.MediumEStyle.Large
EControlConfig.sizeFor(control)spacingrealSpacing between action items, in pixels.
6visibleboolWhether the component is visible.
truewidthrealComponent size in pixels; may be bound to its parent layout.
implicitWidthitemsvarRead onlyAction items after filtering hidden entries.
Computed at runtimenaturalWidthrealRead onlyContent width required to display every action.
Computed at runtimeoverflowItemsvarRead onlyAction model used by the overflow menu.
Computed at runtimevisibleCountintRead onlyNumber of directly visible actions; remaining actions appear in the overflow menu.
Computed at runtimeSignals
failed(string message)Emitted when an operation fails; message describes the error.
command(var value, var item)Emitted when a command is invoked, with its value and menu item.
Methods
trigger(index)Invoke the specified item command, as if the item were selected.