The QPainterPath class provides a container for painting operations, enabling graphical shapes to be ...
virtual QRectF boundingRect() const =0
This pure virtual function defines the outer bounds of the item as a rectangle; all painting must be ...
The QPointF class defines a point in the plane using floating point precision.
bool intersects(const QRectF &r) const
Returns true if this rectangle intersects with the given rectangle (i.
quint32 dirtySceneTransform
The QSizeF class defines the size of a two-dimensional object using floating point precision...
qreal x() const
Returns the x-coordinate of this point.
bool contains(const QPointF &p) const
Returns true if the given point is inside or on the edge of the rectangle; otherwise returns false...
static void _q_adjustRect(QRect *rect)
QFuture< void > map(Sequence &sequence, MapFunction function)
The QRectF class defines a rectangle in the plane using floating point precision. ...
bool itemIsUntransformable() const
quint32 sceneTransformTranslateOnly
void addRect(const QRectF &rect)
Adds the given rectangle to this path as a closed subpath.
QTransform deviceTransform(const QTransform &viewportTransform) const
Returns this item's device transformation matrix, using viewportTransform to map from scene to device...
QTransform sceneTransform
virtual bool contains(const QPointF &point) const
Returns true if this item contains point, which is in local coordinates; otherwise, false is returned.
static const QGraphicsItemPrivate * get(const QGraphicsItem *item)
qreal y() const
Returns the y-coordinate of this point.
QRectF translated(qreal dx, qreal dy) const
Returns a copy of the rectangle that is translated dx along the x axis and dy along the y axis...
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
static bool itemCollidesWithPath(const QGraphicsItem *item, const QPainterPath &path, Qt::ItemSelectionMode mode)
Checks if item collides with the path and mode, but also checks that if it doesn't collide...