[Solved] Design a toolbar/widget in a separate .ui and add it to the QMainWindow

Hi all,
I have an application that load some plugins and I would like one of these plugins to add a new QToolbar when loaded.
Is it possible to define this toolbar with Designer in a standalone .ui and then use it from my plugin (not dynamically with QUiLoader)?

Ah, I see. A single [[Doc:QToolBar]] cannot be edited in Qt Designer. But to be honest, it doesn't give you much benefit. It's so easy to add actions with icons to a toolbar programmatically that it's not worth the work in a graphical design tool. addAction(), insertAction(), add/insertSeparator() are your friends here.

The idea was to let someone else design the toolbar without a line of code.
But I found a solution. I created a mainwindow, added a toolbar. Then edited the xml to remove everything but the toolbar.
Now I have a ui that can still be edited by Designer.