An Undocked QDockWidget not movable
===

I'm having a weird issue with a `QDockWidget`. I have a Main Window initialise with the dock widget set as docked (as desired). When the user undocks it, however, I want them to be able to move it around by click-and-drag. This doesn't work; the widget is resizable but not dragable. I've gone through all the parameters for the widget in Qt Designer, but I can't seem to get it to behave. I have the following parameters set:

    floating = False
    DockWidgetMovable = True
    DockWidgetFloatable = True

The rest is false. Also, the dock widget is always on top of the main window; is there a way to have the window in focus come to the front of the screen?

Any help with this is appreciated. Also, (in case it's relevant) I'm using Ubuntu 11.10