[Interest] Qt/Mac : what about a (the) Window menu?

Mitch Curtis mitch.curtis at qt.io
Wed Mar 7 07:24:04 CET 2018

> -----Original Message-----
> From: Interest [mailto:interest-bounces+mitch.curtis=qt.io at qt-project.org]
> On Behalf Of Nikos Chantziaras
> Sent: Wednesday, 7 March 2018 2:53 AM
> To: interest at qt-project.org
> Subject: Re: [Interest] Qt/Mac : what about a (the) Window menu?
> On 07/03/18 01:52, René J. V. Bertin wrote:
> > Nikos Chantziaras wrote:
> >> Shows up fine here. Unless I'm misunderstanding something.
> >
> > Indeed, the Assistant and QtCreator have the menu. But take a random
> > 3rd party Qt application (say, QupZilla, or Otter Browser) or just
> > about any KF5 application and it will likely not be so lucky.
> >
> > Qt Assistant rolls its own Window menu (and I guess so does Creator).
> >
> > So let me rephrase: why do only some Qt applications show that menu?
> It might be a QML issue. In Widgets, when using QMainWindow, you get an
> application menu by default. In QML with Qt Quick Controls, it seems this got
> only added in Qt 5.10:
>    https://doc.qt.io/qt-5.10/qml-qtquick-controls2-menubar.html

That's a non-native menu bar; this one is native and has been around since 5.8:


Coincidentally, I'm happily using it in a Qt Quick desktop application:


> In other words, don't use QML for desktop applications if you can avoid it :-/

Nitpick: Qt Quick*

> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

More information about the Interest mailing list