In the current toy model, we have some uncomfortable problems with QDockWidgets.
For example, if we take all the QDockWidget out of the QMainWindow and try to place them into the main window again,
we can't place them in all directions: only top/bottom or left/right.
At first, I found another option using QMdiArea and QMdiSubWindows, but this still has some bothering kinds of stuff.
Finally, there seems to be a solution while retaining our QDockWidgets layout: setting a central widget with setCentralWidget().
If we set a QWidget as a central widget, then it seems to work well as I expect.
So the main issue is: Which widget should be placed in the center?
In the current toy model, we have some uncomfortable problems with
QDockWidget
s.For example, if we take all the
QDockWidget
out of theQMainWindow
and try to place them into the main window again, we can't place them in all directions: only top/bottom or left/right.At first, I found another option using
QMdiArea
andQMdiSubWindow
s, but this still has some bothering kinds of stuff.Finally, there seems to be a solution while retaining our
QDockWidget
s layout: setting a central widget withsetCentralWidget()
. If we set aQWidget
as a central widget, then it seems to work well as I expect.So the main issue is: Which widget should be placed in the center?
This issue continues from #79