PDA

View Full Version : QMainWindow with no titlebar in OSX



xgoan
22nd February 2007, 11:55
Hi,

how can I do a QMainWindow in OSX? It always is shown without a titlebar and it's imposible to move it.

The QDialogs works fine

Thanks

wysota
22nd February 2007, 12:02
Can we see the code? Do Qt mainwindow examples work fine?

xgoan
22nd February 2007, 13:11
The examples are working fine.

The code of the Mainwindow contructor is:


MainWindow::MainWindow(QWidget *parent, Qt::WFlags f):DPSMainWindow(parent, f){
QSplashScreen splash(QPixmap(":/images/splash.png"));
splash.show();
setupUi(this);

init();
readSettings();
splash.finish(this);
}

DPSMainWindow is only a subclass of QMainWindow, dont change anything

wysota
22nd February 2007, 13:15
What flags do you pass to the constructor?