4 #include <QSvgRenderer>
5 #include <QGraphicsView>
6 #include <QGraphicsSvgItem>
10 class SVGViewer
: public QGraphicsView
15 SVGViewer(QWidget
*parent
= 0);
18 void openFile(QString fileName
);
24 void paintEvent(QPaintEvent
* event
);
25 void wheelEvent(QWheelEvent
* event
);
28 void zoomChange(qreal factor
);
31 QGraphicsSvgItem
* svgItem
;
32 QGraphicsScene
* gScene
;