PDA

View Full Version : Mac OS ToolBar problem, (setUnifiedTitleAndToolBarOnMac)



s-valve
7th November 2008, 14:52
Hello.


I have a problem with Qt 4.4.3 on Mac OS 10.5.

I have used setUnifiedTitleAndToolBarOnMac for my MainWindow and now the App window width will even be risized to 1146pix at startup. This value is also the minimal adjustable value for the width. The height can be resized independently.

If I switch back to Qt 4.3.4 or don't use "setUnifiedTitleAndToolBarOnMac" this problem will not occur. Has anyone informations about this case?


MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent)
{
//create pageCtrl1 as central widget
pageCtrl1 = new PageCtrl(this);
setCentralWidget(pageCtrl1);

setAcceptDrops(true);

//call main window create fcn.s
createActions();
createMenus();
createToolBars();
createStatusBar();
retranslateUi();

...
//connect diverse slots
#ifdef Q_WS_WIN
connect(singleApp, SIGNAL(messageReceived(QString)), SLOT(openFile(QString)));
#endif
//draw toolbars in brushed metal on Mac OS X
#ifdef Q_WS_MAC
this->setUnifiedTitleAndToolBarOnMac(true);
#endif

}


FYI, I have qt 4.4.3 compiled as following:


./configure -prefix /Developer/qt443 -release -static -no-qt3support -no-phonon -no-phonon-backend -no-webkit -qt-zlib -stl -qt-sql-sqlite -qt-zlib -no-gif -no-libmng -no-libtiff -no-libjpeg -qt-libpng -no-sse -no-sse2 -no-3dnow -no-openssl -no-qdbus -universal -sdk /Developer/SDKs/MacOSX10.4u.sdk && make


best regards,

Martin


(sorry, but this was also posted on http://www.qtforum.org)