Compatibility Members for QGraphicsScene
The following class members are part of the Qt compatibility layer. We advise against using them in new code.
Public Functions
QGraphicsItem * | itemAt(const QPointF & position) const |
QGraphicsItem * | itemAt(qreal x, qreal y) const |
QList<QGraphicsItem *> | items(qreal x, qreal y, qreal w, qreal h, Qt::ItemSelectionMode mode = Qt::IntersectsItemShape) const |
Member Function Documentation
QGraphicsItem * QGraphicsScene::itemAt(const QPointF & position) const
This is an overloaded function.
Returns the topmost visible item at the specified position, or 0 if there are no items at this position.
This function is deprecated and returns incorrect results if the scene contains items that ignore transformations. Use the overload that takes a QTransform instead.
See also items(), collidingItems(), and Sorting.
This is an overloaded function.
Returns the topmost item at the position specified by (x, y), or 0 if there are no items at this position.
This convenience function is equivalent to calling itemAt(QPointF(x, y)).
This function is deprecated and returns incorrect results if the scene contains items that ignore transformations. Use the overload that takes a QTransform instead.
QList<QGraphicsItem *> QGraphicsScene::items(qreal x, qreal y, qreal w, qreal h, Qt::ItemSelectionMode mode = Qt::IntersectsItemShape) const
This convenience function is equivalent to calling items(QRectF(x, y, w, h), mode).
This function is deprecated and returns incorrect results if the scene contains items that ignore transformations. Use the overload that takes a QTransform instead.
This function was introduced in Qt 4.3.