Change default output to stderr since /tmp doesn't exist under windows and is useless under iphoneos, add a couple of extra parameters
#include <QApplication>
#include "mainform.h"
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
MyWindow *mainWin = new MyWindow;
mainWin->show();
return app.exec();
}