tools/templates/main.cpp
author koda
Mon, 22 Aug 2011 23:56:25 +0200
changeset 5660 1647244b3ffe
parent 359 59fbfc65fbda
permissions -rw-r--r--
set gl attributes before creating the window, or some of them might be ignored (like vsync on osx); also don't skip some reloads when switching to fullscreen and back; finally did a little code re-organisation

#include <QApplication>

#include "mainform.h"

int main(int argc, char *argv[])
{
    QApplication app(argc, argv);
    MyWindow *mainWin = new MyWindow;
    mainWin->show();
    return app.exec();
}