Qt 5.9 | Qt WebChannel | Qt WebChannel Standalone Example | standalone.pro Example File

Qt 5.9.3 Reference Documentation

# standalone.pro Example File

standalone/standalone.pro

      QT += gui webchannel widgets websockets

      CONFIG += warn_on

      SOURCES += \
          main.cpp \
          dialog.cpp \
          ../shared/websockettransport.cpp \
          ../shared/websocketclientwrapper.cpp

      HEADERS += \
          core.h \
          dialog.h \
          ../shared/websockettransport.h \
          ../shared/websocketclientwrapper.h

      FORMS += \
          dialog.ui

      DEFINES += "BUILD_DIR=\"\\\""$$OUT_PWD"\\\"\""

      exampleassets.files += \
          index.html
      exampleassets.path = $$[QT_INSTALL_EXAMPLES]/webchannel/standalone
      include(../exampleassets.pri)

      target.path = $$[QT_INSTALL_EXAMPLES]/webchannel/standalone
      INSTALLS += target