PDA

View Full Version : Dock widget does not have a size slider



rakkar
8th September 2009, 17:06
I placed a dock widget in my QTWidget window. It's on the right side of the window. However, there is no slider along the left border of the dock widget to adjust how wide it is. It is only a fixed size.

How can I force it to show the slider along the left border?

Boron
8th September 2009, 22:48
Maybe a QDockWidget is only resizeable in a QMainWindow (just tried it in Designer; fixed size in QDialog; resizeable in QMainWindow)?

Apart from that: I don't think the "slider" can be made visible. It is just there. The mouse cursor will change when it is over the "slider".

rakkar
9th September 2009, 03:53
Maybe that's how it is then. I have one in a MainWindow as well, and it's slidable. But in this window it is not. Maybe someone can explain why this is.

victor.fernandez
9th September 2009, 08:33
Maybe a QDockWidget is only resizeable in a QMainWindow

Exactly. You have to use a QMainWindow.