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

Qt Code:
  1. player_toolbar = addToolBar(tr("Player"));
  2. player_toolbar->setMovable(false);
  3. player_toolbar->addWidget(new Spacer());
  4. player_toolbar->setSizePolicy(QSizePolicy::Ignored, QSizePolicy::Fixed);
  5.  
  6. main_toolbar = addToolBar(tr("Main"));
  7. 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