#include <QCoreApplication> #include "test.h" int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); Test t; t.testIntConvert(); t.testListen(6950); t.testNewConnection(); return a.exec(); }