Esempio n. 1
0
int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    MainMenu w;

    QRect screenGeometry = QApplication::desktop()->screenGeometry();
    int x = (screenGeometry.width()-w.width()) / 2;
    int y = (screenGeometry.height()-w.height()) / 2;
    w.move(x, y);
    w.show();
    return a.exec();
}