Results 1 to 3 of 3

Thread: Raising main Window above floating DockWidgets

  1. #1
    Join Date
    Jul 2009
    Location
    France
    Posts
    17
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question Raising main Window above floating DockWidgets

    Hi,

    My application contains a main window and several DockWidget.
    At startup time, all widgets are docked, then user use to make these widgets floating to be able to view all of them on his screen.

    Cliking on a floating DockWidget raise it.
    But clicking on the main window does not raise it above its childs floating dock widgets.

    Is there a way to implement it ? Any example someshere ?

    BR.

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,709
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Raising main Window above floating DockWidgets

    you can try to call raise() directly for that widget.
    http://doc.trolltech.com/4.5/qwidget.html#raise
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  3. #3
    Join Date
    Jul 2009
    Location
    France
    Posts
    17
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Unhappy Re: Raising main Window above floating DockWidgets

    I tried it : it raises the main window AND all its floating childs widgets.

    This is not the bavior I want : I need to get main window to come in front of its floating childs widgets.

    Any other way to implement this, maybe out of DockWidget ?

Similar Threads

  1. Main Window size problem
    By frenk_castle in forum Newbie
    Replies: 2
    Last Post: 20th December 2009, 10:49
  2. Replies: 2
    Last Post: 9th August 2009, 22:08
  3. access main window from function
    By eric in forum Qt Programming
    Replies: 6
    Last Post: 19th January 2008, 21:29
  4. minimizing main window
    By eric in forum Qt Programming
    Replies: 4
    Last Post: 28th November 2007, 16:54
  5. cannot make a main window modal
    By Dark_Tower in forum Qt Programming
    Replies: 12
    Last Post: 23rd March 2006, 10:21

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.