I use the Qt Designer to design .ui
files and compile them in my VS-Project.
We have a Toolbar class, derived from QToolbar.
Class initialization looks like this.
MyToolBar::ToolBar(QWidget* qWidgetParent) :
ToolBar(qWidgetParent),
mUiToolBar(new Ui::MyToolBar())
{
mUiToolBar->setupUi(this);
//...
}
Everything works fine for fixed positions and sizes. But if I start using a layout for automatic formating everything is broken. In this case everything is on the topleft position.
Any Idea whats happen in this case? What is the correct way to use layouts in a QToolbar?
edit: i have copied the code from my project. In this MyToolBar is derived by ToolBar, a class for managing the same functionality. ToolBar is derived by QToolBar.