auto *tbar = new QToolBar();
tbar->addWidget(new QPushButton("Push Me"));
this->addToolBar(tbar);
this->setUnifiedTitleAndToolBarOnMac(true); // activate Mac-style toolbar
auto *tbar = new QToolBar();
tbar->addWidget(new QPushButton("Push Me"));
this->addToolBar(tbar);
this->setUnifiedTitleAndToolBarOnMac(true); // activate Mac-style toolbar