41 #ifndef QGRAPHICSSVGITEM_H 42 #define QGRAPHICSSVGITEM_H 44 #include <QtGui/qgraphicsitem.h> 46 #ifndef QT_NO_GRAPHICSSVGITEM 71 void setElementId(const
QString &
id);
74 void setCachingEnabled(
bool);
75 bool isCachingEnabled() const;
77 void setMaximumCacheSize(const
QSize &size);
78 QSize maximumCacheSize() const;
82 virtual
void paint(
QPainter *painter,
87 virtual int type()
const;
100 #endif // QT_NO_GRAPHICSSVGITEM 101 #endif // QGRAPHICSSVGITEM_H The QPainter class performs low-level painting on widgets and other paint devices.
#define QT_END_NAMESPACE
This macro expands to.
QPointer< QWidget > widget
QScopedPointer< QGraphicsItemPrivate > d_ptr
The QGraphicsItem class is the base class for all graphical items in a QGraphicsScene.
#define Q_DISABLE_COPY(Class)
Disables the use of copy constructors and assignment operators for the given Class.
#define Q_PRIVATE_SLOT(d, signature)
The QString class provides a Unicode character string.
static const QRectF boundingRect(const QPointF *points, int pointCount)
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QRectF class defines a rectangle in the plane using floating point precision. ...
QVariant data(int key) const
Returns this item's custom data for the key key as a QVariant.
virtual int type() const
Returns the type of an item as an int.
#define Q_DECLARE_PRIVATE_D(Dptr, Class)
The QSvgRenderer class is used to draw the contents of SVG files onto paint devices.
#define Q_INTERFACES(x)
This macro tells Qt which interfaces the class implements.
The QSize class defines the size of a two-dimensional object using integer point precision.
The QGraphicsSvgItem class is a QGraphicsItem that can be used to render the contents of SVG files...
The QGraphicsObject class provides a base class for all graphics items that require signals...
The QStyleOptionGraphicsItem class is used to describe the parameters needed to draw a QGraphicsItem...
static QString fileName(const QString &fileUrl)