Geometrize  1.0
An application for geometrizing images into geometric primitives
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros
svgitem.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <QByteArray>
4 #include <QGraphicsSvgItem>
5 
6 namespace geometrize
7 {
8 
9 namespace scene
10 {
11 
15 class SvgItem : public QGraphicsSvgItem
16 {
17  Q_OBJECT
18 public:
19  explicit SvgItem(const QByteArray& data);
20  virtual ~SvgItem();
21 
22  // NOTE unfortunately there isn't much point overriding the pointer events, because transparent parts of the image aren't ignored
23  // https://stackoverflow.com/questions/5026429/ignore-mouse-events-over-transparent-parts-of-an-svg-image-in-qgraphicsview
24 };
25 
26 }
27 
28 }
The SvgItem class represents an SVG graphic that is drawn as part of a scene.
Definition: svgitem.h:15
SvgItem(const QByteArray &data)
Definition: svgitem.cpp:12
virtual ~SvgItem()
Definition: svgitem.cpp:18