PDA

View Full Version : customizing QDockWidget



walden02
12th February 2010, 16:07
Hello all,

I am trying to create a customized QDockWidget. I have tried to inherit the class and for some reason I lose two critical properties (dockWidgetArea and docked). Without these two properties I cannot dock the widget. I intentionally remove all my customizations in my extended class and I still cannot regain these two properties.

any ideas?

here are 2 snapshots - notice that on my extended class, the last two properties (dockWidgetArea and docked are not available).

wysota
19th February 2010, 11:14
Unfortunately some things are hardcoded in Qt Designer and some class names are checked literally so if you subclass QDockWidget, it is not being treated as a dock widget anymore by Designer. But the real question is - why do you want to subclass QDockWidget?