I don't think a ToolBar is meant to have a Layout. What are you trying to achieve with that?
Seeing everything in the topleft position that should be in a Layout is a sign that either those child Widgets were not added to the Layout (using QLayout::addWidget(...)
) or that the Layout was not added to the parent Widget (your ToolBar, using QWidget::setLayout(...)
).
Also, you probably meant to call QToolBar(qWidgetParent),
in stead of ToolBar(qWidgetParent),
.