First, the problem:
For this application I want to have a fully customizable GUI. Imagine an empty mainwindow, perhaps with a single fixed element but even that's not sure yet. Now the end user must be able to do something like "insert->widgetTypeA", which would create a widget of Type A in his mainwindow.
Well, that's not too hard, but now I want the end user to be able to resize/move this widget.
At first I was thinking of embedding every created widget in a QDockWidget, but that seems to have serious limitations. First, I can't get the dock widgets to assume a certain size from code, which is important as the user must be able to save/restore the created layout. saveState()/restoreState() doesn't seem the way to go as you don't have a fixed amount of widgets, correct me if I'm wrong.
Second, I don't want to limit the end user to the space of a single main window. Instead there must be some sort of MDI, probably just with a tab widget. This won't work because the dock widget will not dock in the tab widget
So, I'm starting to fear that my only solution is to create all-custom widgets, which can be dragged 'n' dropped/resized.
I would welcome any suggestions![]()
Bookmarks