PDA

View Full Version : How does QErrorMessage dialog make itself TopMost?



timewolf
16th August 2011, 08:15
I went through the QErrorMessage code and didn't find any place to set the window flags.

nish
16th August 2011, 08:49
check out the call to exec(). Its blocks the parent widget.

timewolf
17th August 2011, 02:57
check out the call to exec(). Its blocks the parent widget.

Nish, thank you for the comment. However, QErrorMessage doesn't call "exec()", it calls "show()" instead (inside the "showMessage()" member function).
Actually, I am wrong at first. QErrorMessage dialog is not real "Topmost(on top of all other windows)", it's just on top of its parent widget in the same process.