Qt 4.3: SVG Viewer Example

|  | Home · All Classes · Main Classes · Grouped Classes · Modules · Functions |

# SVG Viewer Example

Files:

- painting/svgviewer/mainwindow.cpp
- painting/svgviewer/mainwindow.h
- painting/svgviewer/svgview.cpp
- painting/svgviewer/svgview.h
- painting/svgviewer/svgwindow.cpp
- painting/svgviewer/svgwindow.h
- painting/svgviewer/main.cpp
- painting/svgviewer/svgviewer.qrc

The SVG Viewer example shows how to add SVG viewing support to applications.

Scalable Vector Graphics (SVG) is an XML-based language for describing two-dimensional vector graphics. Qt provides classes for rendering and displaying SVG drawings in widgets and on other paint devices. This example uses QSvgRenderer to paint onto a QWidget, a QImage, and a QGLWidget.

See the QtSvg module documentation for more information about SVG and Qt's SVG classes.