12#include <QQuickPaintedItem>
19 Q_PROPERTY(
QImage image READ image WRITE setImage NOTIFY imageChanged RESET resetImage)
20 Q_PROPERTY(
int nativeWidth READ nativeWidth NOTIFY nativeWidthChanged)
21 Q_PROPERTY(
int nativeHeight READ nativeHeight NOTIFY nativeHeightChanged)
22 Q_PROPERTY(
int paintedWidth READ paintedWidth NOTIFY paintedWidthChanged)
23 Q_PROPERTY(
int paintedHeight READ paintedHeight NOTIFY paintedHeightChanged)
24 Q_PROPERTY(FillMode fillMode READ fillMode WRITE setFillMode NOTIFY fillModeChanged)
25 Q_PROPERTY(
bool null READ isNull NOTIFY nullChanged)
40 ~QImageItem()
override;
42 void setImage(
const QImage &image);
46 int nativeWidth()
const;
47 int nativeHeight()
const;
49 int paintedWidth()
const;
50 int paintedHeight()
const;
52 FillMode fillMode()
const;
53 void setFillMode(FillMode mode);
55 void paint(
QPainter *painter)
override;
60 void nativeWidthChanged();
61 void nativeHeightChanged();
62 void fillModeChanged();
65 void paintedWidthChanged();
66 void paintedHeightChanged();
69 void geometryChange(
const QRectF &newGeometry,
const QRectF &oldGeometry)
override;
77 void updatePaintedRect();
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:14:03 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.