Quickshell


QsMenuEntry: QsMenuHandle

uncreatable
import Quickshell
  • buttonType QsMenuButtonType
    readonly

    If this menu item has an associated checkbox or radiobutton.

  • checkState unknown
    readonly

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

  • enabled bool
    readonly
    No details provided
  • hasChildren bool
    readonly

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

  • icon string
    readonly

    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
    readonly

    If this menu item should be rendered as a separator between other items.

    No other properties have a meaningful value when Go to isSeparator is true.

  • text string
    readonly

    Text of the menu item.

  • display(parentWindow, relativeX, relativeY) void

    Property parentWindowQtObject Property relativeXint Property relativeYint

    Display a platform menu at the given location relative to the parent window.

  • triggered()   ?

    Send a trigger/click signal to the menu entry.