svgviewer.pro Example File | Qt SVG 5.5

- Qt 5.5
- Qt SVG
- SVG Viewer Example
- svgviewer.pro Example File
- Qt 5.5.1 Reference Documentation

# svgviewer.pro Example File

svgviewer/svgviewer.pro

    HEADERS       = mainwindow.h \
                    svgview.h
    RESOURCES     = svgviewer.qrc
    SOURCES       = main.cpp \
                    mainwindow.cpp \
                    svgview.cpp
    QT           += widgets svg

    qtHaveModule(opengl): QT += opengl

    CONFIG += console

    # install
    target.path = $$[QT_INSTALL_EXAMPLES]/svg/svgviewer
    INSTALLS += target

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