Hi Friends,
I have some problem regarding to the positioning of the QDockWidget on the QMainWindow. I have 3 dockwidget in my main window [centre widget I put as 0]:
maindock: left side
leftdock: right side
bottomdock: bottom side
But I am facing some problem:
1) 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).
What I have Done: I have checked two approaches, 1'st is sizeHint() function and another is "savesetting/loadsetting", as I found "savesetting/loadsetting" is more preferable. So I have implemented the approach. But in this case I am not able to maintain the proper ratio[coming some thing 1/2 ratio] of the dockwidgets.
For sizeHint() I am confused how to implement it.
2) I want that when I close one dockwidget then another widget should not take the place of others. DockWidget should fix with respect to the position and place. Only user can do the docking.
Is there any way for the second problem and what I am missing in the first problem.
Bookmarks