#include <QCoreApplication> #include "mainclass.h" int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); MainClass m; m.main(); return a.exec(); }