[Qt-interest] making a dialog that shares a taskbar entry but isn't forced on top
Steven Doerfler
sgd-qt at lugaru.com
Mon Feb 15 17:07:02 CET 2010
I have a main window and a modeless print-preview dialog that the user
can hide or show. The preview dialog should not have its own taskbar
entry. Selecting the taskbar entry should make both windows move on top
of other windows.
Making the preview dialog a QDialog with the main window as its parent
works fine for this, but for one thing: the preview dialog always
appears on top of the parent in the z-order.
I need to let either the main window or the preview dialog to be on top
of the other in the z-order. I could make them both be main windows by
not specifying a parent for the dialog, but then I'd get two taskbar
entries.
How can I have one taskbar entry (where selecting it brings both windows
to the top, without changing their z-ordering), but still allow either
window to be on top of the other? Thanks for any suggestions.
Steven
More information about the Qt-interest-old
mailing list