QT += widgets qtHaveModule(printsupport): QT += printsupport HEADERS = imageviewer.h SOURCES = imageviewer.cpp \ main.cpp # install target.path = $$[QT_INSTALL_EXAMPLES]/widgets/widgets/imageviewer INSTALLS += target wince*: { DEPLOYMENT_PLUGIN += qjpeg qgif } simulator: warning(This example might not fully work on Simulator platform)