[Interest] macOs maximize button in Qt Quick 2 application

Shawn Rutledge Shawn.Rutledge at qt.io
Mon Apr 10 08:11:12 CEST 2017

You need Window { flags: Qt.Window | Qt.WindowFullscreenButtonHint; … }

Have a look at the qtdeclarative/examples/quick/window, which additionally demonstrates how to control window states (visibility) programmatically.

But it’s a good question whether it’s a bug that that behavior is not the default on newer versions of macOS though.  Are you sure whether developers need to enable the feature somehow in native applications too?

> On 10 Apr 2017, at 00:14, Alexandre Ribeiro <alexandregomesribeiro at gmail.com> wrote:
> Hi,
> In macOs Sierra clicking on a window's maximize button makes it fullscreen by default. If a user presses Alt, hovering over the maximize button transforms it to a "normal" maximize button.
> I've just compiled a Qt Quick 2 application under Qt Creator (Qt 5.8) and I'm not seeing this behaviour. All I'm seeing is the "normal" maximize, with no full screen support.
> How can I add the fullscreen native support?
> Cheers,
> Alex
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

More information about the Interest mailing list