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