QSvgRenderer Class Reference

QSvgRenderer Class Reference

#include <qsvgrenderer.h>

Class Description

Definition at line 64 of file qsvgrenderer.h.

+ Inheritance diagram for QSvgRenderer:

Public Slots

bool load (const QString &filename)
 
bool load (const QByteArray &contents)
 
bool load (QXmlStreamReader *contents)
 
void render (QPainter *p)
 
void render (QPainter *p, const QRectF &bounds)
 
void render (QPainter *p, const QString &elementId, const QRectF &bounds=QRectF())
 
- Public Slots inherited from QObject
void deleteLater ()
 

Signals

void repaintNeeded ()
 
- Signals inherited from QObject
void destroyed (QObject *=0)
 

Public Member Functions

 QSvgRenderer (QObject *parent=0)
 
 QSvgRenderer (const QString &filename, QObject *parent=0)
 
 QSvgRenderer (const QByteArray &contents, QObject *parent=0)
 
 QSvgRenderer (QXmlStreamReader *contents, QObject *parent=0)
 
 ~QSvgRenderer ()
 
bool isValid () const
 
QSize defaultSize () const
 
QRect viewBox () const
 
QRectF viewBoxF () const
 
void setViewBox (const QRect &viewbox)
 
void setViewBox (const QRectF &viewbox)
 
bool animated () const
 
int framesPerSecond () const
 
void setFramesPerSecond (int num)
 
int currentFrame () const
 
void setCurrentFrame (int)
 
int animationDuration () const
 
QRectF boundsOnElement (const QString &id) const
 
bool elementExists (const QString &id) const
 
QMatrix matrixForElement (const QString &id) const
 
- Public Member Functions inherited from QObject
Q_INVOKABLE QObject (QObject *parent=0)
 
virtual ~QObject ()
 
virtual bool event (QEvent *)
 
virtual bool eventFilter (QObject *, QEvent *)
 
QString objectName () const
 
void setObjectName (const QString &name)
 
bool isWidgetType () const
 
bool signalsBlocked () const
 
bool blockSignals (bool b)
 
QThreadthread () const
 
void moveToThread (QThread *thread)
 
int startTimer (int interval)
 
void killTimer (int id)
 
template<typename T >
findChild (const QString &aName=QString()) const
 
template<typename T >
QList< T > findChildren (const QString &aName=QString()) const
 
template<typename T >
QList< T > findChildren (const QRegExp &re) const
 
const QObjectListchildren () const
 
void setParent (QObject *)
 
void installEventFilter (QObject *)
 
void removeEventFilter (QObject *)
 
bool connect (const QObject *sender, const char *signal, const char *member, Qt::ConnectionType type=Qt::AutoConnection) const
 
bool disconnect (const char *signal=0, const QObject *receiver=0, const char *member=0)
 
bool disconnect (const QObject *receiver, const char *member=0)
 
void dumpObjectTree ()
 
void dumpObjectInfo ()
 
bool setProperty (const char *name, const QVariant &value)
 
QVariant property (const char *name) const
 
QList< QByteArraydynamicPropertyNames () const
 
void setUserData (uint id, QObjectUserData *data)
 
QObjectUserDatauserData (uint id) const
 
QObjectparent () const
 
bool inherits (const char *classname) const
 

Properties

QRectF viewBox
 
int framesPerSecond
 
int currentFrame
 
- Properties inherited from QObject
QString objectName
 

Additional Inherited Members

- Static Public Member Functions inherited from QObject
static bool connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
 
static bool connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type=Qt::AutoConnection)
 
static bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *member)
 
static bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &member)
 
static uint registerUserData ()
 
- Protected Member Functions inherited from QObject
QObjectsender () const
 
int senderSignalIndex () const
 
int receivers (const char *signal) const
 
virtual void timerEvent (QTimerEvent *)
 
virtual void childEvent (QChildEvent *)
 
virtual void customEvent (QEvent *)
 
virtual void connectNotify (const char *signal)
 
virtual void disconnectNotify (const char *signal)
 
 QObject (QObjectPrivate &dd, QObject *parent=0)
 
- Protected Attributes inherited from QObject
QScopedPointer< QObjectDatad_ptr
 
- Static Protected Attributes inherited from QObject
static const QMetaObject staticQtMetaObject
 

Constructor & Destructor Documentation

QSvgRenderer ( QObject parent = 0)
QSvgRenderer ( const QString filename,
QObject parent = 0 
)
QSvgRenderer ( const QByteArray contents,
QObject parent = 0 
)
QSvgRenderer ( QXmlStreamReader contents,
QObject parent = 0 
)

Member Function Documentation

bool isValid ( ) const
QSize defaultSize ( ) const
QRect viewBox ( ) const
QRectF viewBoxF ( ) const
void setViewBox ( const QRect viewbox)
void setViewBox ( const QRectF viewbox)
bool animated ( ) const
int framesPerSecond ( ) const
void setFramesPerSecond ( int  num)
int currentFrame ( ) const
void setCurrentFrame ( int  )
int animationDuration ( ) const
QRectF boundsOnElement ( const QString id) const
bool elementExists ( const QString id) const
QMatrix matrixForElement ( const QString id) const
bool load ( const QString filename)
slot
bool load ( const QByteArray contents)
slot
bool load ( QXmlStreamReader contents)
slot
void render ( QPainter p)
slot
void render ( QPainter p,
const QRectF bounds 
)
slot
void render ( QPainter p,
const QString elementId,
const QRectF bounds = QRectF() 
)
slot
void repaintNeeded ( )
signal

Property Documentation

QRectF viewBox
readwrite

Definition at line 68 of file qsvgrenderer.h.

int framesPerSecond
readwrite

Definition at line 69 of file qsvgrenderer.h.

int currentFrame
readwrite

Definition at line 70 of file qsvgrenderer.h.


The documentation for this class was generated from the following file: