Definition at line 101 of file qgraphicsscene.h.
Public Types
|
| enum |
ItemIndexMethod
{
BspTreeIndex,
NoIndex = -1 } |
| enum |
SceneLayer
{
ItemLayer = 0x1,
BackgroundLayer = 0x2,
ForegroundLayer = 0x4,
AllLayers = 0xffff } |
Public Slots
|
| void |
update
(const QRectF
&rect=QRectF()) |
| void |
invalidate
(const QRectF
&rect=QRectF(),
SceneLayers layers=AllLayers) |
| void |
advance
() |
| void |
clearSelection
() |
| void |
clear
() |
Signals
|
| void |
changed
(const QList<
QRectF >
®ion) |
| void |
sceneRectChanged
(const QRectF
&rect) |
| void |
selectionChanged
() |
Public Member Functions
|
| |
QGraphicsScene
(QObject
*parent=0) |
| |
QGraphicsScene
(const QRectF
&sceneRect, QObject *parent=0) |
| |
QGraphicsScene
(qreal x, qreal y, qreal width, qreal height, QObject *parent=0) |
|
virtual |
~QGraphicsScene
() |
| QRectF |
sceneRect
() const |
| qreal |
width
() const |
| qreal |
height
() const |
| void |
setSceneRect
(const QRectF
&rect) |
| void |
setSceneRect
(qreal x, qreal y, qreal w, qreal h) |
| void |
render
(QPainter *painter,
const QRectF
&target=QRectF(),
const QRectF
&source=QRectF(),
Qt::AspectRatioMode
aspectRatioMode=Qt::KeepAspectRatio) |
| ItemIndexMethod |
itemIndexMethod
() const |
| void |
setItemIndexMethod
(ItemIndexMethod
method) |
| bool |
isSortCacheEnabled
() const |
| void |
setSortCacheEnabled
(bool enabled) |
| int |
bspTreeDepth
() const |
| void |
setBspTreeDepth
(int depth) |
| QRectF |
itemsBoundingRect
() const |
| QList< QGraphicsItem * > |
items
() const |
| QList< QGraphicsItem * > |
items
(Qt::SortOrder
order) const |
| QList< QGraphicsItem * > |
items
(const QPointF
&pos, Qt::ItemSelectionMode
mode, Qt::SortOrder
order, const QTransform
&deviceTransform=QTransform()) const |
| QList< QGraphicsItem * > |
items
(const QRectF
&rect, Qt::ItemSelectionMode
mode, Qt::SortOrder
order, const QTransform
&deviceTransform=QTransform()) const |
| QList< QGraphicsItem * > |
items
(const QPolygonF
&polygon, Qt::ItemSelectionMode
mode, Qt::SortOrder
order, const QTransform
&deviceTransform=QTransform()) const |
| QList< QGraphicsItem * > |
items
(const QPainterPath &path, Qt::ItemSelectionMode
mode, Qt::SortOrder
order, const QTransform
&deviceTransform=QTransform()) const |
| QList< QGraphicsItem * > |
items
(const QPointF
&pos) const |
| QList< QGraphicsItem * > |
items
(const QRectF
&rect, Qt::ItemSelectionMode
mode=Qt::IntersectsItemShape) const |
| QList< QGraphicsItem * > |
items
(const QPolygonF
&polygon, Qt::ItemSelectionMode
mode=Qt::IntersectsItemShape) const |
| QList< QGraphicsItem * > |
items
(const QPainterPath &path, Qt::ItemSelectionMode
mode=Qt::IntersectsItemShape) const |
| QList< QGraphicsItem * > |
collidingItems
(const QGraphicsItem *item, Qt::ItemSelectionMode
mode=Qt::IntersectsItemShape) const |
| QGraphicsItem * |
itemAt
(const QPointF
&pos) const |
| QGraphicsItem * |
itemAt
(const QPointF
&pos, const QTransform &deviceTransform)
const |
| QList< QGraphicsItem * > |
items
(qreal x, qreal y, qreal w, qreal h, Qt::ItemSelectionMode
mode=Qt::IntersectsItemShape) const |
| QList< QGraphicsItem * > |
items
(qreal x, qreal y, qreal w, qreal h, Qt::ItemSelectionMode
mode, Qt::SortOrder
order, const QTransform
&deviceTransform=QTransform()) const |
| QGraphicsItem * |
itemAt
(qreal x, qreal y) const |
| QGraphicsItem * |
itemAt
(qreal x, qreal y, const QTransform &deviceTransform)
const |
| QList< QGraphicsItem * > |
selectedItems
() const |
| QPainterPath |
selectionArea
() const |
| void |
setSelectionArea
(const QPainterPath &path) |
| void |
setSelectionArea
(const QPainterPath &path, const
QTransform
&deviceTransform) |
| void |
setSelectionArea
(const QPainterPath &path, Qt::ItemSelectionMode
mode) |
| void |
setSelectionArea
(const QPainterPath &path, Qt::ItemSelectionMode
mode, const QTransform &deviceTransform) |
| QGraphicsItemGroup
* |
createItemGroup
(const QList<
QGraphicsItem *
> &items) |
| void |
destroyItemGroup
(QGraphicsItemGroup
*group) |
| void |
addItem
(QGraphicsItem
*item) |
| QGraphicsEllipseItem
* |
addEllipse
(const QRectF
&rect, const QPen
&pen=QPen(), const
QBrush
&brush=QBrush()) |
| QGraphicsLineItem
* |
addLine
(const QLineF
&line, const QPen
&pen=QPen()) |
| QGraphicsPathItem
* |
addPath
(const QPainterPath &path, const
QPen &pen=QPen(), const QBrush &brush=QBrush()) |
| QGraphicsPixmapItem
* |
addPixmap
(const QPixmap
&pixmap) |
| QGraphicsPolygonItem
* |
addPolygon
(const QPolygonF
&polygon, const QPen
&pen=QPen(), const
QBrush
&brush=QBrush()) |
| QGraphicsRectItem
* |
addRect
(const QRectF
&rect, const QPen
&pen=QPen(), const
QBrush
&brush=QBrush()) |
| QGraphicsTextItem
* |
addText
(const QString
&text, const QFont
&font=QFont()) |
| QGraphicsSimpleTextItem
* |
addSimpleText
(const QString
&text, const QFont
&font=QFont()) |
| QGraphicsProxyWidget
* |
addWidget
(QWidget *widget,
Qt::WindowFlags wFlags=0) |
| QGraphicsEllipseItem
* |
addEllipse
(qreal x, qreal y, qreal w, qreal h, const QPen &pen=QPen(), const QBrush &brush=QBrush()) |
| QGraphicsLineItem
* |
addLine
(qreal x1, qreal y1, qreal x2, qreal y2, const QPen &pen=QPen()) |
| QGraphicsRectItem
* |
addRect
(qreal x, qreal y, qreal w, qreal h, const QPen &pen=QPen(), const QBrush &brush=QBrush()) |
| void |
removeItem
(QGraphicsItem
*item) |
| QGraphicsItem * |
focusItem
() const |
| void |
setFocusItem
(QGraphicsItem
*item, Qt::FocusReason
focusReason=Qt::OtherFocusReason) |
| bool |
hasFocus
() const |
| void |
setFocus
(Qt::FocusReason
focusReason=Qt::OtherFocusReason) |
| void |
clearFocus
() |
| void |
setStickyFocus
(bool enabled) |
| bool |
stickyFocus
() const |
| QGraphicsItem * |
mouseGrabberItem
() const |
| QBrush |
backgroundBrush
() const |
| void |
setBackgroundBrush
(const QBrush
&brush) |
| QBrush |
foregroundBrush
() const |
| void |
setForegroundBrush
(const QBrush
&brush) |
| virtual
QVariant |
inputMethodQuery
(Qt::InputMethodQuery
query) const |
| QList< QGraphicsView * > |
views
() const |
| void |
update
(qreal x, qreal y, qreal w, qreal h) |
| void |
invalidate
(qreal x, qreal y, qreal w, qreal h, SceneLayers
layers=AllLayers) |
| QStyle * |
style
() const |
| void |
setStyle
(QStyle *style) |
| QFont |
font
() const |
| void |
setFont
(const QFont
&font) |
| QPalette |
palette
() const |
| void |
setPalette
(const QPalette
&palette) |
| bool |
isActive
() const |
| QGraphicsItem * |
activePanel
() const |
| void |
setActivePanel
(QGraphicsItem
*item) |
| QGraphicsWidget
* |
activeWindow
() const |
| void |
setActiveWindow
(QGraphicsWidget *widget) |
| bool |
sendEvent
(QGraphicsItem
*item, QEvent
*event) |
Protected Slots
|
| bool |
focusNextPrevChild
(bool next) |
Protected Member Functions
|
| bool |
event
(QEvent *event) |
| bool |
eventFilter
(QObject *watched,
QEvent *event) |
| virtual
void |
contextMenuEvent
(QGraphicsSceneContextMenuEvent
*event) |
| virtual
void |
dragEnterEvent
(QGraphicsSceneDragDropEvent
*event) |
| virtual
void |
dragMoveEvent
(QGraphicsSceneDragDropEvent
*event) |
| virtual
void |
dragLeaveEvent
(QGraphicsSceneDragDropEvent
*event) |
| virtual
void |
dropEvent
(QGraphicsSceneDragDropEvent
*event) |
| virtual
void |
focusInEvent
(QFocusEvent
*event) |
| virtual
void |
focusOutEvent
(QFocusEvent
*event) |
| virtual
void |
helpEvent
(QGraphicsSceneHelpEvent
*event) |
| virtual
void |
keyPressEvent
(QKeyEvent
*event) |
| virtual
void |
keyReleaseEvent
(QKeyEvent
*event) |
| virtual
void |
mousePressEvent
(QGraphicsSceneMouseEvent
*event) |
| virtual
void |
mouseMoveEvent
(QGraphicsSceneMouseEvent
*event) |
| virtual
void |
mouseReleaseEvent
(QGraphicsSceneMouseEvent
*event) |
| virtual
void |
mouseDoubleClickEvent
(QGraphicsSceneMouseEvent
*event) |
| virtual
void |
wheelEvent
(QGraphicsSceneWheelEvent
*event) |
| virtual
void |
inputMethodEvent
(QInputMethodEvent
*event) |
| virtual
void |
drawBackground
(QPainter *painter,
const QRectF
&rect) |
| virtual
void |
drawForeground
(QPainter *painter,
const QRectF
&rect) |
| virtual
void |
drawItems
(QPainter *painter,
int numItems, QGraphicsItem *items[], const
QStyleOptionGraphicsItem
options[], QWidget
*widget=0) |
Properties
|
| QBrush |
backgroundBrush |
| QBrush |
foregroundBrush |
| ItemIndexMethod |
itemIndexMethod |
| QRectF |
sceneRect |
| int |
bspTreeDepth |
| QPalette |
palette |
| QFont |
font |
| bool |
sortCacheEnabled |
| bool |
stickyFocus |
Friends
|
| class |
QGraphicsItemPrivate |
| class |
QGraphicsObject |
| class |
QGraphicsView |
| class |
QGraphicsViewPrivate |
| class |
QGraphicsWidget |
| class |
QGraphicsWidgetPrivate |
| class |
QGraphicsEffect |
| class |
QGraphicsSceneIndex |
| class |
QGraphicsSceneIndexPrivate |
| class |
QGraphicsSceneBspTreeIndex |
| class |
QGraphicsSceneBspTreeIndexPrivate |
| class |
QGraphicsItemEffectSourcePrivate |
| class |
QGesture |