snu-quiqcl / qiwis

QuIqcl Widget Integration Software
MIT License
6 stars 2 forks source link

Inserting a central Widget within a main window #85

Closed Ahrrri closed 1 year ago

Ahrrri commented 1 year ago

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?

This issue continues from #79