Qt Reference Documentation

# broadcastreceiver.pro Example File

network/broadcastreceiver/broadcastreceiver.pro

     HEADERS       = receiver.h
     SOURCES       = receiver.cpp \
                     main.cpp
     QT           += network

     # install
     target.path = $$[QT_INSTALL_EXAMPLES]/network/broadcastreceiver
     sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS broadcastreceiver.pro
     sources.path = $$[QT_INSTALL_EXAMPLES]/network/broadcastreceiver
     INSTALLS += target sources

     symbian: {
         TARGET.CAPABILITY = NetworkServices
         include($$QT_SOURCE_TREE/examples/symbianpkgrules.pri)
     }
     maemo5: include($$QT_SOURCE_TREE/examples/maemo5pkgrules.pri)