How to change position of dock widget
-
Please refer "this":http://stackoverflow.com/questions/18871717/how-to-set-dock-widget-below-widget
I tried through geometry and digged the doc of mainwindow and dock widget but unable to do so. Please help.
-
Hi,
Have a look at "Qt::DockWidgetArea":http://qt-project.org/doc/qt-4.8/qt.html#DockWidgetArea-enum to see where you can put your dock widgets.
Hope it helps
-
Hi SGalst,
Thanks for link. I have seen it before and it is not exactly what I wanted. Please refer link to see the image. I wanted to give a gap between dock and mainwindow toolbar. -
If I understand you correctly, you want your dock between two other widgets ?
-
Yes exactly. I found a bad way to do this which costs me to lost dockable features if I place the dock into a widget then it is allowing me to place that widget anywhere. But I want to use dock directly I mean without lossing any feature.
-
-you can try to use stylesheets and set a padding on the QDockWidget.- nvm
-
The only way I see so far (I'm not saying that its good or that it will work) would to put all your widgets in docks and remove the features of the "non dock" widgets. You should then be able to stack them one on top of each other.
-
@SGalst Oh yeah that I can try. Thanks!