Results 1 to 3 of 3

Thread: How to keep a dialog window in front of others windows.

  1. #1
    Join Date
    Feb 2011
    Posts
    5
    Qt products
    Qt3 Qt4 Qt/Embedded Qt Jambi PyQt3 PyQt4
    Platforms
    Windows

    Default How to keep a dialog window in front of others windows.

    Hello,

    I would like to ask how to keep a dialog window in front of the main window when I click over it.

    Thank you in advance

    All the best

    Ricardo Sousa

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: How to keep a dialog window in front of others windows.

    Make the main window the parent of the dialog.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Jan 2008
    Posts
    72
    Thanks
    3
    Thanked 4 Times in 4 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Symbian S60

    Default Re: How to keep a dialog window in front of others windows.

    To activate QDialog window in front of the main window , use exec() function for QDialog rather than show() function.

Similar Threads

  1. Bring application window to front
    By St@n in forum Qt Programming
    Replies: 13
    Last Post: 5th July 2019, 01:55
  2. get main window to float in front of children (Windows 7)
    By mortoray in forum Qt Programming
    Replies: 0
    Last Post: 13th October 2010, 21:04
  3. Bring window to the front
    By Barry79 in forum Newbie
    Replies: 2
    Last Post: 14th August 2009, 17:50
  4. MainWindow in front of child modeless dialog
    By jiveaxe in forum Qt Programming
    Replies: 4
    Last Post: 10th August 2007, 16:18
  5. move parent window to the front.
    By hvengel in forum Qt Programming
    Replies: 4
    Last Post: 2nd February 2007, 08:41

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.