Qt 5.11 | Qt Network | Broadcast Receiver Example | broadcastreceiver.pro Example File

Qt 5.11.3 Reference Documentation

# broadcastreceiver.pro Example File

broadcastreceiver/broadcastreceiver.pro

      QT += network widgets
      requires(qtConfig(udpsocket))

      HEADERS       = receiver.h
      SOURCES       = receiver.cpp \
                      main.cpp

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