[Interest] QML and mac system menu
Alexander Dyagilev
alervdvcw at gmail.com
Sat Sep 14 12:10:34 CEST 2019
Thank you very much! :)
This code works for me now:
QtLabs.MenuBar {
QtLabs.Menu {
QtLabs.MenuItem {
text: "testme"
onTriggered: {}
role: QtLabs.MenuItem.ApplicationSpecificRole
}
}
}
On 9/13/2019 12:30 PM, Michael Corcoran wrote:
> Try action->setMenuRole(QAction::ApplicationSpecificRole);
>
> Demo that works for me: https://gist.github.com/tracernz/5b24ee0bd1e3f065ff3712cdf7708f3a
> Docs: https://doc.qt.io/qt-5/qaction.html#MenuRole-enum
>
> ________________________________________
> From: Interest <interest-bounces at qt-project.org> on behalf of Alexander Dyagilev <alervdvcw at gmail.com>
> Sent: Friday, 13 September 2019 9:01 PM
> To: interestqt-project.org
> Subject: Re: [Interest] QML and mac system menu
>
> Hello,
>
> So, there is no way for this?
>
> On 9/10/2019 4:10 PM, Alexander Dyagilev wrote:
>
> 2) Is there a way to add my custom menu items to the first menu element of my app system menu (which is bold). E.g. "untitled" in my case: [cid:part1.6613AF6E.A5BC87C6 at gmail.com] .
>
More information about the Interest
mailing list