Results 1 to 3 of 3

Thread: How does QErrorMessage dialog make itself TopMost?

  1. #1
    Join Date
    Jul 2011
    Posts
    11
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default How does QErrorMessage dialog make itself TopMost?

    I went through the QErrorMessage code and didn't find any place to set the window flags.

  2. #2
    Join Date
    Jun 2007
    Location
    India
    Posts
    1,042
    Thanks
    8
    Thanked 133 Times in 128 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: How does QErrorMessage dialog make itself TopMost?

    check out the call to exec(). Its blocks the parent widget.

  3. #3
    Join Date
    Jul 2011
    Posts
    11
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How does QErrorMessage dialog make itself TopMost?

    Quote Originally Posted by nish View Post
    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.

Similar Threads

  1. Replies: 1
    Last Post: 15th December 2010, 13:20
  2. Replies: 2
    Last Post: 30th July 2010, 16:44
  3. Customize QErrorMessage
    By doberkofler in forum Qt Programming
    Replies: 1
    Last Post: 19th May 2010, 16:12
  4. How to make Search Dialog as it is used by MAC O.S
    By merry in forum Qt Programming
    Replies: 5
    Last Post: 24th June 2008, 09:46
  5. QGraphicScene and different topmost QGraphicItem
    By Xaar in forum Qt Programming
    Replies: 3
    Last Post: 5th December 2007, 16:58

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.