92 keep = itemRect.
contains(brect) && itemRect != brect;
void translate(qreal dx, qreal dy)
Translates all elements in the path by ({dx}, {dy}).
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 &r) const
Returns true if this rectangle intersects with the given rectangle (i.
quint32 dirtySceneTransform
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)
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
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...
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...