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 ...
bool intersects(const QRectF &rect) const
Returns true if any point in the given rectangle intersects the path; otherwise returns false...
bool contains(const QPointF &pt) const
Returns true if the given point is inside the path, otherwise returns false.
quint32 dirtySceneTransform
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
QTransform deviceTransform(const QTransform &viewportTransform) const
Returns this item's device transformation matrix, using viewportTransform to map from scene to device...
QTransform sceneTransform
static const QGraphicsItemPrivate * get(const QGraphicsItem *item)
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...
QPainterPath translated(qreal dx, qreal dy) const
Returns a copy of the path that is translated by ({dx}, {dy}).
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...