(see edits)
I am developing a QT / C ++ application under gnome.
The application is the main window and the child window of QListBox.
Both of these windows appear as separate main windows when I alt-tab from the application.
How to do this to show only one window when I (or later a user) use alt-tab?
I assume that this behavior occurs because one main window does not crop the subtitle - a twist expands the border of the main window. Gnome has bad tab behavior for other applications, displaying modal dialogs separately from the main windows. But in the case of my application, this is really annoying.
I think I can create a giant transparent window that includes both existing windows. But it would be better to find a โcleanโ solution.
(itโs most logical to assume that it has something to do with window flags. I tried all the reasonable combinations of flags that I could think of. Window types are described here )
Edit: The application has a QWidget as the main window (Not QMainWindow), the QListView is contained in the QWidget object and is created by passing a point to the main window. in the style of Qt :: Tool | Qt :: FramelessWindowHint.
Edit2: The Qt :: X11BypassWindowManagerHint style works to remove a window from the alt-tab list. The problem is that it also makes the window โunmanageable,โ so it spans other windows. I could hide when I lost focus - the prize is now for a better solution.
c ++ qt gnome alt-tab qwidget
Joe soul-bringer
source share