#include <QCoreApplication> #include "wsserver.h" int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); WSServer *server = new WSServer(nullptr,1234); return a.exec(); }