42 #ifndef QDECLARATIVEIMAGEITEM_H 43 #define QDECLARATIVEIMAGEITEM_H 69 QSize contentsSize()
const;
70 void setContentsSize(
const QSize &);
72 qreal contentsScale()
const;
73 void setContentsScale(
qreal);
75 int pixelCacheSize()
const;
76 void setPixelCacheSize(
int pixels);
78 bool smoothCache()
const;
79 void setSmoothCache(
bool on);
82 void setFillColor(
const QColor&);
91 const QRectF &oldGeometry);
95 void setCacheFrozen(
bool);
99 void fillColorChanged();
100 void contentsSizeChanged();
101 void contentsScaleChanged();
104 void dirtyCache(
const QRect &);
The QVariant class acts like a union for the most common Qt data types.
QColor fillColor
The color to be used to fill the item prior to calling drawContents().
The QPainter class performs low-level painting on widgets and other paint devices.
The QColor class provides colors based on RGB, HSV or CMYK values.
#define QT_END_NAMESPACE
This macro expands to.
QScopedPointer< QGraphicsItemPrivate > d_ptr
#define QML_DECLARE_TYPE(TYPE)
#define Q_DISABLE_COPY(Class)
Disables the use of copy constructors and assignment operators for the given Class.
GraphicsItemChange
This enum describes the state changes that are notified by QGraphicsItem::itemChange().
QRectF boundingRect() const
The QDeclarativePaintedItem class is an abstract base class for QDeclarativeView items that want cach...
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QRectF class defines a rectangle in the plane using floating point precision. ...
The QDeclarativeItem class provides the most basic of all visual items in QML.
QVariant data(int key) const
Returns this item's custom data for the key key as a QVariant.
int pixelCacheSize
The maximum number of pixels of image cache to allow.
virtual void geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry)
This function is called to handle this item's changes in geometry from oldGeometry to newGeometry...
#define Q_DECLARE_PRIVATE_D(Dptr, Class)
virtual QVariant itemChange(GraphicsItemChange, const QVariant &)
Note that unlike QGraphicsItems, QDeclarativeItem::itemChange() is not called during initial widget p...
virtual void paint(QPainter *, const QStyleOptionGraphicsItem *, QWidget *)
The QRect class defines a rectangle in the plane using integer precision.
#define Q_AUTOTEST_EXPORT
QSize contentsSize
The size of the contents.
The QSize class defines the size of a two-dimensional object using integer point precision.
The QStyleOptionGraphicsItem class is used to describe the parameters needed to draw a QGraphicsItem...