42 #ifndef QGRAPHICSSCENELINEARINDEX_H 43 #define QGRAPHICSSCENELINEARINDEX_H 56 #include <QtCore/qglobal.h> 58 #if !defined(QT_NO_GRAPHICSVIEW) || (QT_EDITION & QT_MODULE_GRAPHICSVIEW) != QT_MODULE_GRAPHICSVIEW 60 #include <QtCore/qrect.h> 61 #include <QtCore/qlist.h> 62 #include <QtGui/qgraphicsitem.h> 63 #include <private/qgraphicssceneindex_p.h> 97 { m_items.removeOne(item); }
103 #endif // QT_NO_GRAPHICSVIEW 109 #endif // QGRAPHICSSCENELINEARINDEX_H The QGraphicsScene class provides a surface for managing a large number of 2D graphical items...
#define QT_END_NAMESPACE
This macro expands to.
The QGraphicsItem class is the base class for all graphical items in a QGraphicsScene.
virtual void removeItem(QGraphicsItem *item)
Add the item from the index.
#define QT_BEGIN_NAMESPACE
This macro expands to.
QList< QGraphicsItem * > items(Qt::SortOrder order=Qt::DescendingOrder) const
Return all items in the index and sort them using order.
The QRectF class defines a rectangle in the plane using floating point precision. ...
virtual QList< QGraphicsItem * > estimateItems(const QRectF &rect, Qt::SortOrder order) const
Returns an estimation visible items that are either inside or intersect with the specified rect and r...
The QGraphicsSceneIndex class provides a base class to implement a custom indexing algorithm for disc...
virtual void clear()
Clear the all the BSP index.
virtual void addItem(QGraphicsItem *item)
Add the item into the index.
QList< QGraphicsItem * > m_items
#define Q_AUTOTEST_EXPORT
The QGraphicsSceneLinearIndex class provides an implementation of a linear indexing algorithm for dis...
QGraphicsSceneLinearIndex(QGraphicsScene *scene=0)
Construct a linear index for the given scene.
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
The QList class is a template class that provides lists.