Unsolved How to make MainWindow toolbar user-resizable?
-
I have a QToolBar placed in the left toolbar area of a QMainWindow. The contents of the toolbar are dynamic and it's possible that some of the content in the toolbar could be clipped. I don't want to automatically have the toolbar resize to show the clipped content, but I would like the user to be able to drag the toolbar wider if they so desire.
Normally I would use a QSplitter to provide resizability, but I don't see any way to apply that within the context of QMainWindow's left toolbar area and its center widget.
Is there a straightforward way of doing this or should I give up on QMainWindow and roll my own main window from scratch?
-
@mayaknife said in How to make MainWindow toolbar user-resizable?:
Is there a straightforward way of doing this or should I give up on QMainWindow and roll my own main window from scratch?
the toolbar and dockwidget areas are pretty fixed implemented. no room for big customizations.
If you can relinquish most of QMainWIndow's built-in features you might be better off creating your custom main window widget.