Qt 5.11 | Qt Network | Network Chat Example | network-chat.pro Example File

Qt 5.11.3 Reference Documentation

# network-chat.pro Example File

network-chat/network-chat.pro

      HEADERS       = chatdialog.h \
                      client.h \
                      connection.h \
                      peermanager.h \
                      server.h
      SOURCES       = chatdialog.cpp \
                      client.cpp \
                      connection.cpp \
                      main.cpp \
                      peermanager.cpp \
                      server.cpp
      FORMS         = chatdialog.ui
      QT           += network widgets
      requires(qtConfig(udpsocket))
      requires(qtConfig(listwidget))

      # install
      target.path = $$[QT_INSTALL_EXAMPLES]/network/network-chat
      INSTALLS += target