QGraphicsScene Class Reference

#include <qgraphicsscene.h>

Class Description

Definition at line 101 of file qgraphicsscene.h.

+ Inheritance diagram for QGraphicsScene:

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 ()
 
- Public Slots inherited from QObject
void deleteLater ()
 

Signals

void changed (const QList< QRectF > &region)
 
void sceneRectChanged (const QRectF &rect)
 
void selectionChanged ()
 
- Signals inherited from QObject
void destroyed (QObject *=0)
 

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
 
QGraphicsItemitemAt (const QPointF &pos) const
 
QGraphicsItemitemAt (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
 
QGraphicsItemitemAt (qreal x, qreal y) const
 
QGraphicsItemitemAt (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)
 
QGraphicsItemGroupcreateItemGroup (const QList< QGraphicsItem * > &items)
 
void destroyItemGroup (QGraphicsItemGroup *group)
 
void addItem (QGraphicsItem *item)
 
QGraphicsEllipseItemaddEllipse (const QRectF &rect, const QPen &pen=QPen(), const QBrush &brush=QBrush())
 
QGraphicsLineItemaddLine (const QLineF &line, const QPen &pen=QPen())
 
QGraphicsPathItemaddPath (const QPainterPath &path, const QPen &pen=QPen(), const QBrush &brush=QBrush())
 
QGraphicsPixmapItemaddPixmap (const QPixmap &pixmap)
 
QGraphicsPolygonItemaddPolygon (const QPolygonF &polygon, const QPen &pen=QPen(), const QBrush &brush=QBrush())
 
QGraphicsRectItemaddRect (const QRectF &rect, const QPen &pen=QPen(), const QBrush &brush=QBrush())
 
QGraphicsTextItemaddText (const QString &text, const QFont &font=QFont())
 
QGraphicsSimpleTextItemaddSimpleText (const QString &text, const QFont &font=QFont())
 
QGraphicsProxyWidgetaddWidget (QWidget *widget, Qt::WindowFlags wFlags=0)
 
QGraphicsEllipseItemaddEllipse (qreal x, qreal y, qreal w, qreal h, const QPen &pen=QPen(), const QBrush &brush=QBrush())
 
QGraphicsLineItemaddLine (qreal x1, qreal y1, qreal x2, qreal y2, const QPen &pen=QPen())
 
QGraphicsRectItemaddRect (qreal x, qreal y, qreal w, qreal h, const QPen &pen=QPen(), const QBrush &brush=QBrush())
 
void removeItem (QGraphicsItem *item)
 
QGraphicsItemfocusItem () 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
 
QGraphicsItemmouseGrabberItem () 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)
 
QStylestyle () const
 
void setStyle (QStyle *style)
 
QFont font () const
 
void setFont (const QFont &font)
 
QPalette palette () const
 
void setPalette (const QPalette &palette)
 
bool isActive () const
 
QGraphicsItemactivePanel () const
 
void setActivePanel (QGraphicsItem *item)
 
QGraphicsWidgetactiveWindow () const
 
void setActiveWindow (QGraphicsWidget *widget)
 
bool sendEvent (QGraphicsItem *item, QEvent *event)
 
- Public Member Functions inherited from QObject
Q_INVOKABLE QObject (QObject *parent=0)
 
virtual ~QObject ()
 
QString objectName () const
 
void setObjectName (const QString &name)
 
bool isWidgetType () const
 
bool signalsBlocked () const
 
bool blockSignals (bool b)
 
QThreadthread () const
 
void moveToThread (QThread *thread)
 
int startTimer (int interval)
 
void killTimer (int id)
 
template<typename T >
findChild (const QString &aName=QString()) const
 
template<typename T >
QList< T > findChildren (const QString &aName=QString()) const
 
template<typename T >
QList< T > findChildren (const QRegExp &re) const
 
const QObjectListchildren () const
 
void setParent (QObject *)
 
void installEventFilter (QObject *)
 
void removeEventFilter (QObject *)
 
bool connect (const QObject *sender, const char *signal, const char *member, Qt::ConnectionType type=Qt::AutoConnection) const
 
bool disconnect (const char *signal=0, const QObject *receiver=0, const char *member=0)
 
bool disconnect (const QObject *receiver, const char *member=0)
 
void dumpObjectTree ()
 
void dumpObjectInfo ()
 
bool setProperty (const char *name, const QVariant &value)
 
QVariant property (const char *name) const
 
QList< QByteArraydynamicPropertyNames () const
 
void setUserData (uint id, QObjectUserData *data)
 
QObjectUserDatauserData (uint id) const
 
QObjectparent () const
 
bool inherits (const char *classname) const
 

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)
 
- Protected Member Functions inherited from QObject
QObjectsender () const
 
int senderSignalIndex () const
 
int receivers (const char *signal) const
 
virtual void timerEvent (QTimerEvent *)
 
virtual void childEvent (QChildEvent *)
 
virtual void customEvent (QEvent *)
 
virtual void connectNotify (const char *signal)
 
virtual void disconnectNotify (const char *signal)
 
 QObject (QObjectPrivate &dd, QObject *parent=0)
 

Properties

QBrush backgroundBrush
 
QBrush foregroundBrush
 
ItemIndexMethod itemIndexMethod
 
QRectF sceneRect
 
int bspTreeDepth
 
QPalette palette
 
QFont font
 
bool sortCacheEnabled
 
bool stickyFocus
 
- Properties inherited from QObject
QString objectName
 

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
 

Additional Inherited Members

- Static Public Member Functions inherited from QObject
static bool connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
 
static bool connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type=Qt::AutoConnection)
 
static bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *member)
 
static bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &member)
 
static uint registerUserData ()
 
- Protected Attributes inherited from QObject
QScopedPointer< QObjectDatad_ptr
 
- Static Protected Attributes inherited from QObject
static const QMetaObject staticQtMetaObject
 

Member Enumeration Documentation

Enumerator
BspTreeIndex 
NoIndex 

Definition at line 115 of file qgraphicsscene.h.

enum SceneLayer
Enumerator
ItemLayer 
BackgroundLayer 
ForegroundLayer 
AllLayers 

Definition at line 120 of file qgraphicsscene.h.

Constructor & Destructor Documentation

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 ( )
virtual

Member Function Documentation

QRectF sceneRect ( ) const
qreal width ( ) const
inline

Definition at line 134 of file qgraphicsscene.h.

134 { return sceneRect().width(); }
QRectF sceneRect() const
qreal width() const
Definition: qrect.h:707
qreal height ( ) const
inline

Definition at line 135 of file qgraphicsscene.h.

135 { return sceneRect().height(); }
QRectF sceneRect() const
qreal height() const
Definition: qrect.h:710
void setSceneRect ( const QRectF rect)
void setSceneRect ( qreal  x,
qreal  y,
qreal  w,
qreal  h 
)
inline

Definition at line 137 of file qgraphicsscene.h.

138  { setSceneRect(QRectF(x, y, w, h)); }
void setSceneRect(const QRectF &rect)
GLenum GLint GLint y
Definition: GLee.h:876
GLenum GLint x
Definition: GLee.h:876
Definition: qrect.h:511
int int int int int int h
Definition: GLee.h:10534
GLubyte GLubyte GLubyte GLubyte w
Definition: GLee.h:1775
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
inline

Definition at line 173 of file qgraphicsscene.h.

174  { return items(QRectF(x, y, w, h), mode); } // ### obsolete
GLenum GLint GLint y
Definition: GLee.h:876
GLint mode
Definition: GLee.h:4479
QList< QGraphicsItem * > items() const
GLenum GLint x
Definition: GLee.h:876
Definition: qrect.h:511
int int int int int int h
Definition: GLee.h:10534
GLubyte GLubyte GLubyte GLubyte w
Definition: GLee.h:1775
QList<QGraphicsItem *> items ( qreal  x,
qreal  y,
qreal  w,
qreal  h,
Qt::ItemSelectionMode  mode,
Qt::SortOrder  order,
const QTransform deviceTransform = QTransform() 
) const
inline

Definition at line 175 of file qgraphicsscene.h.

177  { return items(QRectF(x, y, w, h), mode, order, deviceTransform); }
GLenum GLint GLint y
Definition: GLee.h:876
GLint mode
Definition: GLee.h:4479
QList< QGraphicsItem * > items() const
GLenum GLint x
Definition: GLee.h:876
Definition: qrect.h:511
int int int int int int h
Definition: GLee.h:10534
GLubyte GLubyte GLubyte GLubyte w
Definition: GLee.h:1775
QGraphicsItem* itemAt ( qreal  x,
qreal  y 
) const
inline

Definition at line 178 of file qgraphicsscene.h.

179  { return itemAt(QPointF(x, y)); }
GLenum GLint GLint y
Definition: GLee.h:876
QGraphicsItem * itemAt(const QPointF &pos) const
GLenum GLint x
Definition: GLee.h:876
QGraphicsItem* itemAt ( qreal  x,
qreal  y,
const QTransform deviceTransform 
) const
inline

Definition at line 180 of file qgraphicsscene.h.

181  { return itemAt(QPointF(x, y), deviceTransform); }
GLenum GLint GLint y
Definition: GLee.h:876
QGraphicsItem * itemAt(const QPointF &pos) const
GLenum GLint x
Definition: GLee.h:876
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() 
)
inline

Definition at line 203 of file qgraphicsscene.h.

204  { return addEllipse(QRectF(x, y, w, h), pen, brush); }
GLenum GLint GLint y
Definition: GLee.h:876
GLenum GLint x
Definition: GLee.h:876
QGraphicsEllipseItem * addEllipse(const QRectF &rect, const QPen &pen=QPen(), const QBrush &brush=QBrush())
Definition: qrect.h:511
int int int int int int h
Definition: GLee.h:10534
GLubyte GLubyte GLubyte GLubyte w
Definition: GLee.h:1775
QGraphicsLineItem* addLine ( qreal  x1,
qreal  y1,
qreal  x2,
qreal  y2,
const QPen pen = QPen() 
)
inline

Definition at line 205 of file qgraphicsscene.h.

206  { return addLine(QLineF(x1, y1, x2, y2), pen); }
QGraphicsLineItem * addLine(const QLineF &line, const QPen &pen=QPen())
Definition: qline.h:212
QGraphicsRectItem* addRect ( qreal  x,
qreal  y,
qreal  w,
qreal  h,
const QPen pen = QPen(),
const QBrush brush = QBrush() 
)
inline

Definition at line 207 of file qgraphicsscene.h.

208  { return addRect(QRectF(x, y, w, h), pen, brush); }
GLenum GLint GLint y
Definition: GLee.h:876
QGraphicsRectItem * addRect(const QRectF &rect, const QPen &pen=QPen(), const QBrush &brush=QBrush())
GLenum GLint x
Definition: GLee.h:876
Definition: qrect.h:511
int int int int int int h
Definition: GLee.h:10534
GLubyte GLubyte GLubyte GLubyte w
Definition: GLee.h:1775
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
virtual
QList<QGraphicsView *> views ( ) const
void update ( qreal  x,
qreal  y,
qreal  w,
qreal  h 
)
inline

Definition at line 232 of file qgraphicsscene.h.

233  { update(QRectF(x, y, w, h)); }
GLenum GLint GLint y
Definition: GLee.h:876
GLenum GLint x
Definition: GLee.h:876
Definition: qrect.h:511
int int int int int int h
Definition: GLee.h:10534
void update(qreal x, qreal y, qreal w, qreal h)
GLubyte GLubyte GLubyte GLubyte w
Definition: GLee.h:1775
void invalidate ( qreal  x,
qreal  y,
qreal  w,
qreal  h,
SceneLayers  layers = AllLayers 
)
inline

Definition at line 234 of file qgraphicsscene.h.

235  { invalidate(QRectF(x, y, w, h), layers); }
GLenum GLint GLint y
Definition: GLee.h:876
GLenum GLint x
Definition: GLee.h:876
Definition: qrect.h:511
int int int int int int h
Definition: GLee.h:10534
GLubyte GLubyte GLubyte GLubyte w
Definition: GLee.h:1775
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 
)
void update ( const QRectF rect = QRectF())
slot
void invalidate ( const QRectF rect = QRectF(),
SceneLayers  layers = AllLayers 
)
slot
void advance ( )
slot
void clearSelection ( )
slot
void clear ( )
slot
bool event ( QEvent event)
protectedvirtual

Reimplemented from QObject.

bool eventFilter ( QObject watched,
QEvent event 
)
protectedvirtual

Reimplemented from QObject.

virtual void contextMenuEvent ( QGraphicsSceneContextMenuEvent event)
protectedvirtual
virtual void dragEnterEvent ( QGraphicsSceneDragDropEvent event)
protectedvirtual
virtual void dragMoveEvent ( QGraphicsSceneDragDropEvent event)
protectedvirtual
virtual void dragLeaveEvent ( QGraphicsSceneDragDropEvent event)
protectedvirtual
virtual void dropEvent ( QGraphicsSceneDragDropEvent event)
protectedvirtual
virtual void focusInEvent ( QFocusEvent event)
protectedvirtual
virtual void focusOutEvent ( QFocusEvent event)
protectedvirtual
virtual void helpEvent ( QGraphicsSceneHelpEvent event)
protectedvirtual
virtual void keyPressEvent ( QKeyEvent event)
protectedvirtual
virtual void keyReleaseEvent ( QKeyEvent event)
protectedvirtual
virtual void mousePressEvent ( QGraphicsSceneMouseEvent event)
protectedvirtual
virtual void mouseMoveEvent ( QGraphicsSceneMouseEvent event)
protectedvirtual
virtual void mouseReleaseEvent ( QGraphicsSceneMouseEvent event)
protectedvirtual
virtual void mouseDoubleClickEvent ( QGraphicsSceneMouseEvent event)
protectedvirtual
virtual void wheelEvent ( QGraphicsSceneWheelEvent event)
protectedvirtual
virtual void inputMethodEvent ( QInputMethodEvent event)
protectedvirtual
virtual void drawBackground ( QPainter painter,
const QRectF rect 
)
protectedvirtual
virtual void drawForeground ( QPainter painter,
const QRectF rect 
)
protectedvirtual
virtual void drawItems ( QPainter painter,
int  numItems,
QGraphicsItem items[],
const QStyleOptionGraphicsItem  options[],
QWidget widget = 0 
)
protectedvirtual
bool focusNextPrevChild ( bool  next)
protectedslot
void changed ( const QList< QRectF > &  region)
signal
void sceneRectChanged ( const QRectF rect)
signal
void selectionChanged ( )
signal

Friends And Related Function Documentation

friend class QGraphicsItemPrivate
friend

Definition at line 304 of file qgraphicsscene.h.

friend class QGraphicsObject
friend

Definition at line 305 of file qgraphicsscene.h.

friend class QGraphicsView
friend

Definition at line 306 of file qgraphicsscene.h.

friend class QGraphicsViewPrivate
friend

Definition at line 307 of file qgraphicsscene.h.

friend class QGraphicsWidget
friend

Definition at line 308 of file qgraphicsscene.h.

friend class QGraphicsWidgetPrivate
friend

Definition at line 309 of file qgraphicsscene.h.

friend class QGraphicsEffect
friend

Definition at line 310 of file qgraphicsscene.h.

friend class QGraphicsSceneIndex
friend

Definition at line 311 of file qgraphicsscene.h.

friend class QGraphicsSceneIndexPrivate
friend

Definition at line 312 of file qgraphicsscene.h.

friend class QGraphicsSceneBspTreeIndex
friend

Definition at line 313 of file qgraphicsscene.h.

friend class QGraphicsSceneBspTreeIndexPrivate
friend

Definition at line 314 of file qgraphicsscene.h.

friend class QGraphicsItemEffectSourcePrivate
friend

Definition at line 315 of file qgraphicsscene.h.

friend class QGesture
friend

Definition at line 317 of file qgraphicsscene.h.

Property Documentation

QBrush backgroundBrush
readwrite

Definition at line 104 of file qgraphicsscene.h.

QBrush foregroundBrush
readwrite

Definition at line 105 of file qgraphicsscene.h.

ItemIndexMethod itemIndexMethod
readwrite

Definition at line 106 of file qgraphicsscene.h.

QRectF sceneRect
readwrite

Definition at line 107 of file qgraphicsscene.h.

int bspTreeDepth
readwrite

Definition at line 108 of file qgraphicsscene.h.

QPalette palette
readwrite

Definition at line 109 of file qgraphicsscene.h.

QFont font
readwrite

Definition at line 110 of file qgraphicsscene.h.

bool sortCacheEnabled
readwrite

Definition at line 111 of file qgraphicsscene.h.

bool stickyFocus
readwrite

Definition at line 112 of file qgraphicsscene.h.


The documentation for this class was generated from the following file: