Results 1 to 3 of 3

Thread: Bring window to the front

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Jul 2008
    Location
    London, UK
    Posts
    11
    Thanked 5 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Bring window to the front

    QWidget::raise() or QMainWindow::activateWindow.

    ActivateWindow is probably what you want but it will have "odd" effects on Windows boxes as if the app window isn't on top you'll get a "flasher" in the task bar instead. That is it won't actually raise the window to the top but show the user that the application requires attention.

    The other trick might be to set the "Qt::WindowStaysOnTopHint" attribute on the window. e.g. p_mainWindow->setAttribute(Qt::WindowStaysOnTopHint);

  2. The following user says thank you to burnttoy for this useful post:

    Barry79 (14th August 2009)

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. Replies: 2
    Last Post: 9th August 2009, 22:08
  3. Bring QDialog to front
    By mitro in forum Newbie
    Replies: 3
    Last Post: 21st April 2008, 20:32
  4. move parent window to the front.
    By hvengel in forum Qt Programming
    Replies: 4
    Last Post: 2nd February 2007, 08:41
  5. Replies: 5
    Last Post: 4th August 2006, 23:44

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
  •  
Qt is a trademark of The Qt Company.