Results 1 to 3 of 3

Thread: How to order of QDockWidgets in a DockWidgetArea?

  1. #1
    Join Date
    Mar 2007
    Location
    Germany
    Posts
    229
    Thanks
    2
    Thanked 29 Times in 28 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default How to order of QDockWidgets in a DockWidgetArea?

    Hello,

    I have two QDockWidgets in the left dock widget area.
    But the sort order (which one is above the other) differs between Qt Designer and what the executable file shows.
    Designer.png --> As designed in Qt Designer.
    exe.png --> What the compiler makes in the executbale.

    How can I enforce the easter bunny to appear below the other dock widget (as designed)?
    Qt 4.7.2 with Visual Studio 2008 on Win XP.

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

    Default Re: How to order of QDockWidgets in a DockWidgetArea?

    Easter bunnies are tricky little bastards, its a known fact!

    But seriously:
    My guess is that it has to do with the order in which you added the widgets to the form - since both are in the left dock area.
    Try adding them so that you add the bunny first see if it helps.
    ==========================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
    Mar 2007
    Location
    Germany
    Posts
    229
    Thanks
    2
    Thanked 29 Times in 28 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How to order of QDockWidgets in a DockWidgetArea?

    Yes, that bunny keeps me awake all the night .

    I tried adding the dock widgets in different orders: First the upper widget followed by the bunny widget, and vice versa.
    I even edited the ui file manually moving the "bunny widget" part above the other widget part, despite I want the bunny below the other widget.
    Nothing helps .
    The bunny always wants to be on top.

Similar Threads

  1. DockWidgetArea change and layout direction change
    By mstegehu in forum Qt Programming
    Replies: 1
    Last Post: 21st February 2012, 21:24
  2. DockWidgetArea geometry or DockWidget positions.
    By harregui in forum Qt Programming
    Replies: 1
    Last Post: 4th March 2011, 09:48
  3. Replies: 0
    Last Post: 5th October 2010, 09:20
  4. Selecting tabbed QDockwidgets
    By trskel in forum Qt Programming
    Replies: 3
    Last Post: 25th September 2007, 17:22
  5. QDockWidgets without central widget
    By JoeMerchant in forum Qt Programming
    Replies: 17
    Last Post: 8th August 2007, 14:52

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.