Qt Reference Documentation

svgviewer.pro Example File

painting/svgviewer/svgviewer.pro
 HEADERS       = mainwindow.h \
                 svgview.h
 RESOURCES     = svgviewer.qrc
 SOURCES       = main.cpp \
                 mainwindow.cpp \
                 svgview.cpp
 QT           += svg xml

 contains(QT_CONFIG, opengl): QT += opengl

 CONFIG += console

 # install
 target.path = $$[QT_INSTALL_EXAMPLES]/painting/svgviewer
 sources.files = $$SOURCES $$HEADERS $$RESOURCES svgviewer.pro files
 sources.path = $$[QT_INSTALL_EXAMPLES]/painting/svgviewer
 INSTALLS += target sources

 wince*: {
      addFiles.sources = files\\*.svg
      addFiles.path = "\\My Documents"
      DEPLOYMENT += addFiles
 }

 symbian: {
      TARGET.UID3 = 0xA000A64E
      include($$QT_SOURCE_TREE/examples/symbianpkgrules.pri)
      addFiles.sources = files\\*.svg
      addFiles.path = .
      DEPLOYMENT += addFiles
 }
X

Thank you for giving your feedback.

Make sure it is related to this specific page. For more general bugs and requests, please use the Qt Bug Tracker.