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

Amends b8947e9194 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
Pick-to: 6.1
Change-Id: Id227fd31d8bafaaab7005e5ff5340da96c0f65b3
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
bb10
Volker Hilsheimer 2021-05-03 10:39:18 +02:00
parent 16a1ba69a6
commit 18f5b83e97
1 changed files with 4 additions and 0 deletions

View File

@ -173,6 +173,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