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