Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.6.2
-
macOS only
Description
On macOS, pre-Qt 5, the window flag foo.setWindowFlags(Qt::Tool) kept the tool window on top of the app’s window, and the tool window stayed visible when the app lost focus, but did not stay on top of other apps windows.
In Qt 5.6.2, this flag behaves differently and tool windows disappear when the main app looses focus to another application.
The solution to this is supposedly to call:
setAttribute(Qt::WA_MacAlwaysShowToolWindow, true);
for the tool window. Unfortunately, this forces the Tool window to remain “always on top” of other application windows, as well as the parent window. The attached file contains an example of this changed behavior.
The goal: On macOS, have this flag allow windows to behave as they did in Qt 4. The following three criteria must be met to maintain Qt4 functionality:
1. Tool Windows are always on top of the Parent Window.
2. Tool Windows remain visible when the parent Window/App looses focus to another app.
3. Tool Windows are not “always on top” of other application windows, only its own application window.
Currently, we can achieve any two of the above by various combinations of flags, but not all three.