Qt 5.9 | Qt SVG | SVG Viewer Example | svgviewer.pro Example File

Qt 5.9.2 Reference Documentation

# svgviewer.pro Example File

svgviewer/svgviewer.pro

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

      qtHaveModule(opengl): QT += opengl

      CONFIG += console

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