1 2 3 4 5 6 7 8 9 10 11 12
#include <QApplication> #include "test.h" int main(int argc, char ** argv) { QApplication a(argc, argv); Test w; w.show(); int retCode = a.exec(); return retCode; }