mToolBar = new QToolBar;addToolBar(mToolBar);mToolBar->setAllowedAreas(Qt::LeftToolBarArea);
mToolBar = new QToolBar;addToolBar(Qt::LeftToolBarArea, mToolBar);
void QMainWindow::addToolBar ( QToolBar * toolbar )This is an overloaded function.Equivalent of calling addToolBar(Qt::TopToolBarArea, toolbar)