QMainWindow::setUnifiedTitleAndToolBarOnMac should not be used anymore.
It only worked properly in Qt4 and has become rather pointless after Mac OS X 10.8 or 10.9 .