i want to make an interface with two toolbars
the first is not movable but the second is
the problem is that when i set the size policy the first toolbar is covered by the second
this is the code i am using
player_toolbar = addToolBar(tr("Player"));
player_toolbar->setMovable(false);
player_toolbar->addWidget(new Spacer());
main_toolbar = addToolBar(tr("Main"));
main_toolbar->setMovable(false);
player_toolbar = addToolBar(tr("Player"));
player_toolbar->setMovable(false);
player_toolbar->addWidget(new Spacer());
player_toolbar->setSizePolicy(QSizePolicy::Ignored, QSizePolicy::Fixed);
main_toolbar = addToolBar(tr("Main"));
main_toolbar->setMovable(false);
To copy to clipboard, switch view to plain text mode
spacer is just a widget with setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Minimum);
each toolbar should get its own horizontal space
Bookmarks