I'm having problems with my QToolbar
.
I got a QToolBar and used a QVBoxLayout inside it to dispose my QPushButtons.
My problem was when I floated my ToolBar around the QVBoxLayout used to make lose its layout. After I put it back inside de dock the layout was back to normal.
I'd like to know if there is any way to fix the same layout for any situation.
I tried to implement two different layouts for each status, fixed and floating, but also didn't work.
The only way I found was forget the QToolBar and re-implementing my own personalized QWidget and simulate my own ToolBar so it did work well.