44 #ifndef QT_NO_SVGWIDGET 49 #include "private/qwidget_p.h" 139 if (
d->renderer->isValid())
140 return d->renderer->defaultSize();
142 return QSize(128, 64);
153 d->renderer->render(&p);
162 d->renderer->load(file);
171 d->renderer->load(contents);
176 #endif // QT_NO_SVGWIDGET The QPainter class performs low-level painting on widgets and other paint devices.
#define QT_END_NAMESPACE
This macro expands to.
The QByteArray class provides an array of bytes.
The QString class provides a Unicode character string.
#define QT_BEGIN_NAMESPACE
This macro expands to.
static bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
Creates a connection of the given type from the signal in the sender object to the method in the rece...
#define Q_DECLARE_PUBLIC(Class)
The QSvgRenderer class is used to draw the contents of SVG files onto paint devices.
QObject * parent() const
Returns a pointer to the parent object.
The QSize class defines the size of a two-dimensional object using integer point precision.
The QPaintEvent class contains event parameters for paint events.