QsMenuEntry: QsMenuHandle [uncreatable]

import Quickshell

Properties

Functions

Signals

Property Details

[readonly]

buttonType: QsMenuButtonType

If this menu item has an associated checkbox or radiobutton.

[readonly]

checkState: unknown

The check state of the checkbox or radiobutton if applicable, as a Qt.CheckState.

[readonly]

enabled: bool

No details provided.

[readonly]

hasChildren: bool

If this menu item has children that can be accessed through a QsMenuOpener.

[readonly]

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
}
[readonly]

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.

[readonly]

text: string

Text of the menu item.

Function Details

void display(parentWindow: QtObject, relativeX: int, relativeY: int)

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.