summaryrefslogtreecommitdiffstats
path: root/src/widgets/doc/snippets/qtablewidget-using/mainwindow.h
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2023-10-26 15:42:23 +0200
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2023-11-12 18:40:03 +0200
commitb49211c12543c3369b286b507c4277c66ef9fdef (patch)
tree48d5c4c28c92f0c45a0c58ac6025dce152a9f697 /src/widgets/doc/snippets/qtablewidget-using/mainwindow.h
parent6343caae25179b5895b4169d7b97d61293e49b0f (diff)
macOS: Activate all windows on launch, not just key/main windows
The default macOS behavior when an application is activated is to bring key and main windows to the front. Any window shown after that is order to the front as normal. For Qt apps we show windows in main() instead of waiting for the application to become active first, and the request to show the window may reach the window server before or after Finder has made the application active. If it arrives first, the window may end up behind the currently frontmost application. This is particularly noticeable when the application is not activated by Finder, and we do our own activation workaround. In this case all our windows are hidden, except for the key window. To ensure a consistent behavior here, we explicitly activate all windows of the application on launch. Pick-to: 6.5 6.6 Change-Id: Ice55f7d03e077c5a5ca843f75f1a7296ebb47aa7 Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Diffstat (limited to 'src/widgets/doc/snippets/qtablewidget-using/mainwindow.h')
0 files changed, 0 insertions, 0 deletions