[Qt-interest] QDialog staying on top
John McClurkin
jwm at nei.nih.gov
Thu Apr 9 13:37:08 CEST 2009
Sam Jaeschke wrote:
> 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
This could be a function of your window manager in Linux. I know that
Gnome and KDE behave differently regarding main and dialog windows.
More information about the Qt-interest-old
mailing list