QsMenuEntry: QsMenuHandle [uncreatable]
import Quickshell
Properties
- buttonType: QsMenuButtonType
- checkState: unknown
- enabled: bool
- hasChildren: bool
- icon: string
- isSeparator: bool
- text: string
Functions
Signals
Property Details
If this menu item has an associated checkbox or radiobutton.
checkState: unknown
The check state of the checkbox or radiobutton if applicable, as a Qt.CheckState.
enabled: bool
No details provided.
hasChildren: bool
If this menu item has children that can be accessed through a QsMenuOpener.
icon: string
Url of the menu item’s icon or ""
if it doesn’t have one.
This can be passed to Image.source as shown below.
Image {
source: menuItem.icon
// To get the best image quality, set the image source size to the same size
// as the rendered image.
sourceSize.width: width
sourceSize.height: height
}
isSeparator: bool
If this menu item should be rendered as a separator between other items.
No other properties have a meaningful value when isSeparator is true.
text: string
Text of the menu item.
Function Details
Display a platform menu at the given location relative to the parent window.
Signal Details
triggered()
Send a trigger/click signal to the menu entry.