<div dir="ltr"><div dir="ltr">Hi,</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Sep 10, 2019 at 3:26 PM Mitch Curtis <<a href="mailto:mitch.curtis@qt.io">mitch.curtis@qt.io</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">> -----Original Message-----<br>
> From: Interest <<a href="mailto:interest-bounces@qt-project.org" target="_blank">interest-bounces@qt-project.org</a>> On Behalf Of Alexander<br>
> Dyagilev<br>
> Sent: Tuesday, 10 September 2019 3:11 PM<br>
> To: <a href="http://interestqt-project.org" rel="noreferrer" target="_blank">interestqt-project.org</a> <<a href="mailto:interest@qt-project.org" target="_blank">interest@qt-project.org</a>><br>
> Subject: [Interest] QML and mac system menuĀ </blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
> 2) Is there a way to add my custom menu items to the first menu element of<br>
> my app system menu (which is bold). E.g. "untitled" in my case: . "Quit"<br>
> menu goes there automatically despite it's in "File" menu really, according to<br>
> the QML code.<br>
> <br>
<br>
In my experience the Quit menu item goes where it wants to. It seems to be a feature of macOS.<br></blockquote><div><br></div><div>I don't know for QtQuick Controls, but at least for QWidgets its not 'where it wants to', but 'where Qt decides to put it'. There's special logic in the native code for binding QMenu and it's items to macOS menu items that handles actions with the (translated) text 'Quit', 'About', and 'About Qt' and moves them to the applications' menu. So you can have a quit action in your file menu by not calling it 'Quit' (or 'Exit'). Maybe 'Terminate' would work.</div><div><br></div><div>I suspect the same logic is being applied to menus created via QtQuick Controls.</div><div><br></div><div>Andreas</div></div></div>