From 120eb3b48cf1af902a8b03feb2ff1167b28883c9 Mon Sep 17 00:00:00 2001 From: Volker Hilsheimer Date: Mon, 3 May 2021 10:39:18 +0200 Subject: [PATCH] Document that a toplevel window QSizeGrip doesn't get rendered on macOS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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ø Reviewed-by: Timur Pocheptsov (cherry picked from commit 18f5b83e97828dd572eaf67c054a43aa5472a668) Reviewed-by: Qt Cherry-pick Bot --- src/widgets/widgets/qsizegrip.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/widgets/widgets/qsizegrip.cpp b/src/widgets/widgets/qsizegrip.cpp index be9ec0a580a..4d4013adc3e 100644 --- a/src/widgets/widgets/qsizegrip.cpp +++ b/src/widgets/widgets/qsizegrip.cpp @@ -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