PDA

View Full Version : How to order of QDockWidgets in a DockWidgetArea?



Boron
20th April 2011, 16:52
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.
6265 --> As designed in Qt Designer.
6266 --> 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.

high_flyer
21st April 2011, 10:50
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.

Boron
21st April 2011, 11:41
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.