[Qt-interest] Why does my QDialog insist on making itself a Qt::Tool?

KC Jones kc at asperasoft.com
Mon Mar 8 06:18:53 CET 2010


What have I done?

I want a modeless dialog that can be pushed behind all other windows.  My
dialog is based on QDialog.   I don't give it any window flags (though I
have tried passing in Qt:Dialog to no avail).  The parent widget is the main
app window.  I've also tried leaving the parent NULL.  I've combed through
the .ui file to look for unexpected, unwanted properties.  Nada.

But no matter what I do, the Qt::Tool window flag is set by the time the
constructor is reached.  The dialog therefor floats above its parent.

I raise it with show(), not exec(), but already in the constructor the
Qt::Tool window flag is set.

What causes the Qt::Tool flag to be set automatically?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100307/1c32b87f/attachment.html 


More information about the Qt-interest-old mailing list