Yeah i'm just using the default main() function that Visual Studio created.

Qt Code:
  1. QApplication a(argc, argv);
  2. MainWidget w;
  3. w.show();
  4. return a.exec();
To copy to clipboard, switch view to plain text mode 

Is there a problem with doing that? The other thing is I'm using 4.6.0 Qt, so maybe this has already been fixed?