summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2021-05-03 10:39:18 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2021-05-03 15:04:47 +0200
commit18f5b83e97828dd572eaf67c054a43aa5472a668 (patch)
tree09ccefd2e980e0f6dadb55870b569b38ab630a54 /src
parent16a1ba69a682fbe7855682448ac0340574a67035 (diff)
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 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>
Diffstat (limited to 'src')
-rw-r--r--src/widgets/widgets/qsizegrip.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/widgets/widgets/qsizegrip.cpp b/src/widgets/widgets/qsizegrip.cpp
index 92042f31df..d91312c2ca 100644
--- a/src/widgets/widgets/qsizegrip.cpp
+++ b/src/widgets/widgets/qsizegrip.cpp
@@ -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