[Qt-interest] QDialog staying on top
Sam Jaeschke
sam.jaeschke at maptek.com.au
Thu Apr 9 09:07:10 CEST 2009
Hi all,
I have a main application window, which has a button that launches a
secondary QDialog. This dialog box was always on top, even when the main
window was focused on. I didn't want this to be always on top, so I
removed the main window pointer being passed as the parent to the
QDialog constructor (now parentless). This fixed it in Windows, and the
main application window can be brought in front of the secondary dialog
box when the main window is in focus. However, it behaves differently in
Linux - the main window always remains behind the secondary dialog box,
even though it is parentless. How do I make the secondary QDialog not
always be on top in Linux?
Using Qt 4.4.0.
Cheers,
Sam
More information about the Qt-interest-old
mailing list