[Interest] QML and mac system menu

Michael Corcoran michael.corcoran at outlook.com
Fri Sep 13 11:30:06 CEST 2019


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] .
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ndgdafhjabbjgbkn.png
Type: image/png
Size: 2011 bytes
Desc: ndgdafhjabbjgbkn.png
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20190913/c3e85f0d/attachment.png>


More information about the Interest mailing list