How to change toolbar position

broken image

Toolbar->show() //important, because removeToolBar hides move it right just change the dock area to Qt::RightToolBarArea.

broken image

To move toolbar toolbar = ui->mainToolBar ĪddToolBar(Qt::LeftToolBarArea, toolbar) This is for widgets not placed in layouts or docks and for windows.Īlso don't set allowed areas like that because the user might want to drag it elsewhere and you're preventing them from doing that.