Show WindowTitle on Minimized QDialog mini-frame
-
Hello everyone,
In my application I have a QMainWindow spawning some non-modal QDialogs, on which I add the minimize button via window flags. When I minimize any of these dialogs, it creates a mini window-frame on the bottom left corner of my mainwindow, as shown in the attached screenshot.
I understand that this happens because I pass the mainwindow as parent for the dialogs, preventing them from appearing on the windows taskbar, and I'm okay with this behavior.
What I would like to do is to show the dialog's window title in the mini-frame, because it is only showing the close and the restore button. The dialog's window title would give useful informations on which frame belongs to which dialog when many dialogs are minimized.
Do you know if it is possible to achieve? -
How it looks is controlled by the window manager and out of app's hands unfortunately.
-
Thanks, I was fearing something like this.
I had a sick idea of putting an svg icon with the window title embedded, but unfortunately it gets compressed as the one in the screenshot and it's impossible to read the text. -
The long way around would be to disable the built-in system minimize function and implement a custom minimize-like behavior that would mimic the default one, but not really minimizing the window, just moving and resizing it so that it looks minimized. This way you could size it so that the title bar is visible. Of course it gets hairy if you have multiple of those, because now you'd have to basically re-implement window placement management that you normally get for free from the OS.