1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
QT += core websockets QT -= gui TARGET = chatserver CONFIG += console CONFIG -= app_bundle TEMPLATE = app SOURCES += \ main.cpp \ chatserver.cpp HEADERS += \ chatserver.h EXAMPLE_FILES += chatclient.html target.path = $$[QT_INSTALL_EXAMPLES]/websockets/simplechat INSTALLS += target