PDA

View Full Version : How to movable dock widgets?



becond
21st February 2006, 08:24
Hi,

I am using Qt 4.0 and I am trying to create a main window with dock widgets using the Qt Designer. When the dock widgets are in float status, I cannot move/drag the widgets around. I have tried changing the QDockWidget::features to Floatable and different combinations of the Qt::DockWidgetAreas, but to no avail.

Can someone please explain how to create movable widgets?

Thanks.

Everall
21st February 2006, 13:35
did you have a look at the
Dock Widgets Example


Cheers

becond
21st February 2006, 20:19
I have tried following the example here:
http://doc.trolltech.com/4.1/mainwindows-dockwidgets.html

But it does not demonstrate how do it using Qt Designer.
Is this possible using with Qt 4.0?

Everall
21st February 2006, 20:57
in QT4.1.1 it is possible :

set the docked property to true
and set the dockWidgetArea to the position you want to start with.

Afterwards you can drag it to other positions or get it floated.

Cheers