Quote Originally Posted by franz View Post
Dock widgets are meant to be used around the central widget. Your implementation more or less asks for quirky behavior... What behavior do you want to achieve? Try to explain without mentioning dock windows. Just make some screen shots and choose a few easy-to-type-about names to clarify. Maybe someone can offer you a better solution to what you're trying to achieve.
Thanks franz...

Actually I have problem regarding to the positioning of the QDockWidget on the QMainWindow. I have 3 dockwidget in my main window [initially centre widget I put as 0]:

maindock: left side
rightdock: right side
bottomdock: bottom side

I have to position the dockwidget in some ratio (Say 3/4 width for maindock, 1/4 width for left dock and 100 px height for bottom widget).

Now I want that when I close the "rightdock" and "bottomdock", then "maindock" should take the place of others, but reverse should not possible(i.e. when close "maindock" then "rightdock" and "bottomdock" should not resize). All the dockwidgets
should have the docking features.

To achieve this I have used the approach that I have mention in my initial post (i.e. if maindock will be member of the centre
widget then I can achieve this, but the problem comes here...)