Document that a toplevel window QSizeGrip doesn't get rendered on macOS

Amends b8947e9194f0f88f464448ac51f6a05113d36a33 which removed the grip's
rendering unless they are in a QMdiSubwindow. This was a deliberate
choice to comply with the macOS HIG. Rather than putting in another
widget attribute, document that another style can be used.

Fixes: QTBUG-90945
Change-Id: Id227fd31d8bafaaab7005e5ff5340da96c0f65b3
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
(cherry picked from commit 18f5b83e97828dd572eaf67c054a43aa5472a668)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Volker Hilsheimer 2021-05-03 10:39:18 +02:00 committed by Qt Cherry-pick Bot
parent de1e66cd8b
commit 120eb3b48c

View File

@ -171,6 +171,10 @@ Qt::Corner QSizeGripPrivate::corner() const
On some platforms the size grip automatically hides itself when the
window is shown full screen or maximised.
\note On macOS, size grips are no longer part of the human interface
guideline, and won't show unless used in a QMdiSubWindow. Set another
style on size grips that you want to be visible in main windows.
\table 50%
\row \li \inlineimage fusion-statusbar-sizegrip.png Screenshot of a Fusion style size grip
\li A size grip widget at the bottom-right corner of a main window, shown in the