Qt Reference Documentation

systray.pro Example File

desktop/systray/systray.pro
 HEADERS       = window.h
 SOURCES       = main.cpp \
                 window.cpp
 RESOURCES     = systray.qrc
 QT           += xml svg

 # install
 target.path = $$[QT_INSTALL_EXAMPLES]/desktop/systray
 sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS systray.pro resources images
 sources.path = $$[QT_INSTALL_EXAMPLES]/desktop/systray
 INSTALLS += target sources

 symbian: include($$QT_SOURCE_TREE/examples/symbianpkgrules.pri)

 wince* {
         CONFIG(debug, release|debug) {
                 addPlugins.files = $$QT_BUILD_TREE/plugins/imageformats/qsvgd4.dll
         }
         CONFIG(release, release|debug) {
                 addPlugins.files = $$QT_BUILD_TREE/plugins/imageformats/qsvg4.dll
         }
         addPlugins.path = imageformats
         DEPLOYMENT += addPlugins
 }

 maemo5: include($$QT_SOURCE_TREE/examples/maemo5pkgrules.pri)
 symbian: warning(This example does not work on Symbian platform)
 maemo5: warning(This example does not work on Maemo platform)
 simulator: warning(This example does not work on Simulator platform)