10#include <QtWidgets/private/qwidget_p.h>
85 this,
SLOT(update()));
123 if (
d->renderer->isValid())
124 return d->renderer->defaultSize();
126 return QSize(128, 64);
139 return d->renderer->options();
172 d->renderer->render(&
p);
181 d->renderer->load(
file);
183 d->renderer->setAnimationEnabled(
false);
194 d->renderer->setAnimationEnabled(
false);
static QObjectPrivate * get(QObject *o)
Q_INVOKABLE QObject(QObject *parent=nullptr)
Constructs an object with parent object parent.
QObject * parent() const
Returns a pointer to the parent object.
static QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
\threadsafe
virtual bool eventFilter(QObject *watched, QEvent *event)
Filters events if this object has been installed as an event filter for the watched object.
The QPaintEvent class contains event parameters for paint events.
The QPainter class performs low-level painting on widgets and other paint devices.
\macro QT_RESTRICTED_CAST_FROM_ASCII
The QStyleOption class stores the parameters used by QStyle functions.
void initFrom(const QWidget *w)
virtual void drawPrimitive(PrimitiveElement pe, const QStyleOption *opt, QPainter *p, const QWidget *w=nullptr) const =0
Draws the given primitive element with the provided painter using the style options specified by opti...
bool load(const QString &filename)
Loads the SVG file specified by filename, returning true if the content was successfully parsed; othe...
void setAnimationEnabled(bool enable)
Combined button and popup list for selecting options.
monitoredObj installEventFilter(filterObj)
[13]
QSvgRenderer * renderer
[0]