{ "name": "QsMenuEntry", "module": "Quickshell", "type": "class", "super": { "type": "qt", "module": "qml.QtQml", "name": "QtObject" }, "description": null, "details": null, "flags": [ "uncreatable" ], "properties": { "hasChildren": { "type": { "type": "qt", "module": "qml", "name": "bool" }, "details": "If this menu item has children that can be accessed through a {{< qmltypelink type=\"local\" module=\"Quickshell\" name=\"QsMenuOpener\" mtype=\"\" mname=\"\" >}}.\n", "flags": [ "readonly" ] }, "buttonType": { "type": { "type": "local", "module": "Quickshell", "name": "QsMenuButtonType" }, "details": "If this menu item has an associated checkbox or radiobutton.\n", "flags": [ "readonly" ] }, "text": { "type": { "type": "qt", "module": "qml", "name": "string" }, "details": "Text of the menu item.\n", "flags": [ "readonly" ] }, "icon": { "type": { "type": "qt", "module": "qml", "name": "string" }, "details": "Url of the menu item's icon or `\"\"` if it doesn't have one.\n\nThis can be passed to [Image.source](https://doc.qt.io/qt-6/qml-qtquick-image.html#source-prop)\nas shown below.\n\n```qml\nImage {\n source: menuItem.icon\n // To get the best image quality, set the image source size to the same size\n // as the rendered image.\n sourceSize.width: width\n sourceSize.height: height\n}\n```\n", "flags": [ "readonly" ] }, "isSeparator": { "type": { "type": "qt", "module": "qml", "name": "bool" }, "details": "If this menu item should be rendered as a separator between other items.\n\nNo other properties have a meaningful value when {{< qmltypelink type=\"\" module=\"\" name=\"\" mtype=\"prop\" mname=\"isSeparator\" >}} is true.\n", "flags": [ "readonly" ] }, "enabled": { "type": { "type": "qt", "module": "qml", "name": "bool" }, "details": null, "flags": [ "readonly" ] }, "checkState": { "type": { "type": "unknown", "module": "", "name": "" }, "details": "The check state of the checkbox or radiobutton if applicable, as a\n[Qt.CheckState](https://doc.qt.io/qt-6/qt.html#CheckState-enum).\n", "flags": [ "readonly" ] } }, "functions": [ { "ret": { "type": "qt", "module": "qml", "name": "void" }, "name": "display", "id": "display", "details": "Display a platform menu at the given location relative to the parent window.\n", "params": [ { "name": "parentWindow", "type": { "type": "qt", "module": "qml.QtQml", "name": "QtObject" } }, { "name": "relativeX", "type": { "type": "qt", "module": "qml", "name": "int" } }, { "name": "relativeY", "type": { "type": "qt", "module": "qml", "name": "int" } } ] } ], "signals": { "triggered": { "name": "triggered", "details": "Send a trigger/click signal to the menu entry.\n", "params": [] } }, "variants": {} }