[Development] old-style, consistent fullscreen behaviour on Mac
Tor Arne Vestbø
tor.arne.vestbo at qt.io
Thu Apr 20 12:20:17 CEST 2017
I see the problem you are trying to solve, but I don't think it's worth
it to maintain a separate code path for this legacy mode that conflicts
with the platform behavior.
tor arne
On 20/04/2017 00:04, René J. V. Bertin wrote:
> Hi,
>
> I went ahead and tinkered with Qt4's code:
>
> https://github.com/RJVB/shortcut-test-qt5/blob/master/mainwindow.cpp#L302
>
> QCocoaWindow inherits only QObject, not QWidget or QWindow, so implementing this
> logic in the Cocoa QPA was a bit more work but not impossible:
>
> https://cgit.kde.org/scratch/rjvbb/osx-integration.git/tree/src/qcocoa-qpa/qcocoawindow.mm?h=qt590#n1906
>
> This PoC implementation applies the "legacy" (old-style) fullscreen mode to
> windows without the fullscreen titlebar button, and when QT_LEGACY_FULLSCREEN is
> set. In the latter case it appears to be a good idea to unset
> Qt::WindowFullscreenButtonHint because otherwise certain events restore the
> window frame (decoration).
>
> R
>
More information about the Development
mailing list