Hi everybody,
QT: 4.1.3
OS: WinXP PRO
Compiler: MINGW
I am trying to set my app in the midle of my desktop. How can i do tha?Should i use setCentralWidget??
#include <QApplication>
#include "mainwindow.h"
int main(int argc, char *argv[])
{
app.setStyle("plastique");
app.setPalette( app.style()->standardPalette() );
MainWindow m;
m.setMinimumSize(451,600);
m.setMaximumSize(451,600);
// m.setCentralWidget();
m.show();
return app.exec();
}
#include <QApplication>
#include "mainwindow.h"
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
app.setStyle("plastique");
app.setPalette( app.style()->standardPalette() );
MainWindow m;
m.setMinimumSize(451,600);
m.setMaximumSize(451,600);
// m.setCentralWidget();
m.show();
return app.exec();
}
To copy to clipboard, switch view to plain text mode
Bookmarks