Carlsberg
5th May 2013, 18:58
I have a QFrame displayed as a subwindow (so it doesn't have a taskbar button) and also modal, with no parent.
In Qt4, when pressing on the application taskbar button the frame is always on top of the application. Also this happens when choosing another application then coming back to my application.
In Qt5 however, when I press on my application button, the main window comes on top, hiding the modal frame, making the application unusable, since the modal frame is behind, so I can only close it from the task manager.
This is what I'm using:
setWindowFlags(Qt::FramelessWindowHint | Qt::SubWindow);
setWindowModality(Qt::ApplicationModal);
I'm absolutely sure it's a Qt5 problem, because I use the exact same code with both versions
Any idea how can I make this thing behave sanely in Qt5?
In Qt4, when pressing on the application taskbar button the frame is always on top of the application. Also this happens when choosing another application then coming back to my application.
In Qt5 however, when I press on my application button, the main window comes on top, hiding the modal frame, making the application unusable, since the modal frame is behind, so I can only close it from the task manager.
This is what I'm using:
setWindowFlags(Qt::FramelessWindowHint | Qt::SubWindow);
setWindowModality(Qt::ApplicationModal);
I'm absolutely sure it's a Qt5 problem, because I use the exact same code with both versions
Any idea how can I make this thing behave sanely in Qt5?