tools/templates/main.cpp
author sheepluva
Thu, 15 Sep 2011 03:17:23 +0200
changeset 5910 c9a4de51b5a0
parent 359 59fbfc65fbda
permissions -rw-r--r--
cleaned up the screenshot procedure a little. This does NOT fix the segfaults or invalid pointer operations that occur in there for me if I resize the window and then screenshot (does not always happen. usually in FreeMem() after the successful save though!

#include <QApplication>

#include "mainform.h"

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