CONFIG += console HEADERS += server_monitor.h SOURCES += server_monitor.cpp greaterThan(QT_MAJOR_VERSION, 4): QT += widgets