Home · All Classes · Modules

QGraphicsScene Class Reference
[QtGui module]

Inherits QObject.

Types

Methods

Qt Signals


Detailed Description


Type Documentation

QGraphicsScene.ItemIndexMethod

QGraphicsScene.SceneLayer


Method Documentation

QGraphicsScene.__init__ (self, QObject parent = None)

The parent argument, if not None, causes self to be owned by Qt instead of PyQt.

QGraphicsScene.__init__ (self, QRectF, QObject parent = None)

The parent argument, if not None, causes self to be owned by Qt instead of PyQt.

QGraphicsScene.__init__ (self, float, float, float, float, QObject parent = None)

The parent argument, if not None, causes self to be owned by Qt instead of PyQt.

QGraphicsItem QGraphicsScene.activePanel (self)

QGraphicsWidget QGraphicsScene.activeWindow (self)

QGraphicsEllipseItem QGraphicsScene.addEllipse (self, QRectF, QPen pen = QPen(), QBrush brush = QBrush())

QGraphicsEllipseItem QGraphicsScene.addEllipse (self, float, float, float, float, QPen pen = QPen(), QBrush brush = QBrush())

QGraphicsScene.addItem (self, QGraphicsItem)

The QGraphicsItem argument has it's ownership transferred to Qt.

QGraphicsLineItem QGraphicsScene.addLine (self, QLineF, QPen pen = QPen())

QGraphicsLineItem QGraphicsScene.addLine (self, float, float, float, float, QPen pen = QPen())

QGraphicsPathItem QGraphicsScene.addPath (self, QPainterPath, QPen pen = QPen(), QBrush brush = QBrush())

QGraphicsPixmapItem QGraphicsScene.addPixmap (self, QPixmap)

QGraphicsPolygonItem QGraphicsScene.addPolygon (self, QPolygonF, QPen pen = QPen(), QBrush brush = QBrush())

QGraphicsRectItem QGraphicsScene.addRect (self, QRectF, QPen pen = QPen(), QBrush brush = QBrush())

QGraphicsRectItem QGraphicsScene.addRect (self, float, float, float, float, QPen pen = QPen(), QBrush brush = QBrush())

QGraphicsSimpleTextItem QGraphicsScene.addSimpleText (self, QString, QFont font = QFont())

QGraphicsTextItem QGraphicsScene.addText (self, QString, QFont font = QFont())

QGraphicsProxyWidget QGraphicsScene.addWidget (self, QWidget, Qt.WindowFlags flags = 0)

The QWidget argument has it's ownership transferred to Qt.

QGraphicsScene.advance (self)

This method is also a Qt slot with the C++ signature void advance().

QBrush QGraphicsScene.backgroundBrush (self)

int QGraphicsScene.bspTreeDepth (self)

QGraphicsScene.clear (self)

This method is also a Qt slot with the C++ signature void clear().

QGraphicsScene.clearFocus (self)

QGraphicsScene.clearSelection (self)

list-of-QGraphicsItem QGraphicsScene.collidingItems (self, QGraphicsItem, Qt.ItemSelectionMode mode = Qt.IntersectsItemShape)

QGraphicsScene.contextMenuEvent (self, QGraphicsSceneContextMenuEvent)

QGraphicsItemGroup QGraphicsScene.createItemGroup (self, list-of-QGraphicsItem)

The list-of-QGraphicsItem argument has it's ownership transferred to Qt.

QGraphicsScene.destroyItemGroup (self, QGraphicsItemGroup)

The QGraphicsItemGroup argument has it's ownership transferred to Qt.

QGraphicsScene.dragEnterEvent (self, QGraphicsSceneDragDropEvent)

QGraphicsScene.dragLeaveEvent (self, QGraphicsSceneDragDropEvent)

QGraphicsScene.dragMoveEvent (self, QGraphicsSceneDragDropEvent)

QGraphicsScene.drawBackground (self, QPainter, QRectF)

QGraphicsScene.drawForeground (self, QPainter, QRectF)

QGraphicsScene.drawItems (self, QPainter painter, list-of-QGraphicsItem items, list-of-QStyleOptionGraphicsItem options, QWidget widget = None)

QGraphicsScene.dropEvent (self, QGraphicsSceneDragDropEvent)

bool QGraphicsScene.event (self, QEvent)

bool QGraphicsScene.eventFilter (self, QObject, QEvent)

QGraphicsScene.focusInEvent (self, QFocusEvent)

QGraphicsItem QGraphicsScene.focusItem (self)

bool QGraphicsScene.focusNextPrevChild (self, bool)

QGraphicsScene.focusOutEvent (self, QFocusEvent)

QFont QGraphicsScene.font (self)

QBrush QGraphicsScene.foregroundBrush (self)

bool QGraphicsScene.hasFocus (self)

float QGraphicsScene.height (self)

QGraphicsScene.helpEvent (self, QGraphicsSceneHelpEvent)

QGraphicsScene.inputMethodEvent (self, QInputMethodEvent)

QVariant QGraphicsScene.inputMethodQuery (self, Qt.InputMethodQuery)

QGraphicsScene.invalidate (self, QRectF rect = QRectF(), SceneLayers layers = QGraphicsScene.AllLayers)

This method is also a Qt slot with the C++ signature void invalidate(const QRectF& = QRectF(),QGraphicsScene::SceneLayers = QGraphicsScene.AllLayers).

QGraphicsScene.invalidate (self, float, float, float, float, SceneLayers layers = QGraphicsScene.AllLayers)

bool QGraphicsScene.isActive (self)

bool QGraphicsScene.isSortCacheEnabled (self)

QGraphicsItem QGraphicsScene.itemAt (self, QPointF)

QGraphicsItem QGraphicsScene.itemAt (self, float, float)

QGraphicsItem QGraphicsScene.itemAt (self, QPointF, QTransform)

QGraphicsItem QGraphicsScene.itemAt (self, float, float, QTransform)

ItemIndexMethod QGraphicsScene.itemIndexMethod (self)

list-of-QGraphicsItem QGraphicsScene.items (self)

list-of-QGraphicsItem QGraphicsScene.items (self, QPointF)

list-of-QGraphicsItem QGraphicsScene.items (self, QRectF, Qt.ItemSelectionMode mode = Qt.IntersectsItemShape)

list-of-QGraphicsItem QGraphicsScene.items (self, QPolygonF, Qt.ItemSelectionMode mode = Qt.IntersectsItemShape)

list-of-QGraphicsItem QGraphicsScene.items (self, QPainterPath, Qt.ItemSelectionMode mode = Qt.IntersectsItemShape)

list-of-QGraphicsItem QGraphicsScene.items (self, float, float, float, float, Qt.ItemSelectionMode mode = Qt.IntersectsItemShape)

list-of-QGraphicsItem QGraphicsScene.items (self, Qt.SortOrder)

list-of-QGraphicsItem QGraphicsScene.items (self, QPointF, Qt.ItemSelectionMode, Qt.SortOrder, QTransform deviceTransform = QTransform())

list-of-QGraphicsItem QGraphicsScene.items (self, QRectF, Qt.ItemSelectionMode, Qt.SortOrder, QTransform deviceTransform = QTransform())

list-of-QGraphicsItem QGraphicsScene.items (self, QPolygonF, Qt.ItemSelectionMode, Qt.SortOrder, QTransform deviceTransform = QTransform())

list-of-QGraphicsItem QGraphicsScene.items (self, QPainterPath, Qt.ItemSelectionMode, Qt.SortOrder, QTransform deviceTransform = QTransform())

list-of-QGraphicsItem QGraphicsScene.items (self, float, float, float, float, Qt.ItemSelectionMode, Qt.SortOrder, QTransform deviceTransform = QTransform())

QRectF QGraphicsScene.itemsBoundingRect (self)

QGraphicsScene.keyPressEvent (self, QKeyEvent)

QGraphicsScene.keyReleaseEvent (self, QKeyEvent)

QGraphicsScene.mouseDoubleClickEvent (self, QGraphicsSceneMouseEvent)

QGraphicsItem QGraphicsScene.mouseGrabberItem (self)

QGraphicsScene.mouseMoveEvent (self, QGraphicsSceneMouseEvent)

QGraphicsScene.mousePressEvent (self, QGraphicsSceneMouseEvent)

QGraphicsScene.mouseReleaseEvent (self, QGraphicsSceneMouseEvent)

QPalette QGraphicsScene.palette (self)

QGraphicsScene.removeItem (self, QGraphicsItem)

The QGraphicsItem argument

QGraphicsScene.render (self, QPainter, QRectF target = QRectF(), QRectF source = QRectF(), Qt.AspectRatioMode mode = Qt.KeepAspectRatio)

QRectF QGraphicsScene.sceneRect (self)

list-of-QGraphicsItem QGraphicsScene.selectedItems (self)

QPainterPath QGraphicsScene.selectionArea (self)

bool QGraphicsScene.sendEvent (self, QGraphicsItem, QEvent)

QGraphicsScene.setActivePanel (self, QGraphicsItem)

QGraphicsScene.setActiveWindow (self, QGraphicsWidget)

QGraphicsScene.setBackgroundBrush (self, QBrush)

QGraphicsScene.setBspTreeDepth (self, int)

QGraphicsScene.setFocus (self, Qt.FocusReason focusReason = Qt.OtherFocusReason)

QGraphicsScene.setFocusItem (self, QGraphicsItem, Qt.FocusReason focusReason = Qt.OtherFocusReason)

QGraphicsScene.setFont (self, QFont)

QGraphicsScene.setForegroundBrush (self, QBrush)

QGraphicsScene.setItemIndexMethod (self, ItemIndexMethod)

QGraphicsScene.setPalette (self, QPalette)

QGraphicsScene.setSceneRect (self, QRectF)

QGraphicsScene.setSceneRect (self, float, float, float, float)

QGraphicsScene.setSelectionArea (self, QPainterPath)

QGraphicsScene.setSelectionArea (self, QPainterPath, Qt.ItemSelectionMode)

QGraphicsScene.setSelectionArea (self, QPainterPath, QTransform)

QGraphicsScene.setSelectionArea (self, QPainterPath, Qt.ItemSelectionMode, QTransform)

QGraphicsScene.setSortCacheEnabled (self, bool)

QGraphicsScene.setStickyFocus (self, bool)

QGraphicsScene.setStyle (self, QStyle)

The QStyle argument has it's ownership transferred to Qt.

bool QGraphicsScene.stickyFocus (self)

QStyle QGraphicsScene.style (self)

QGraphicsScene.update (self, QRectF rect = QRectF())

This method is also a Qt slot with the C++ signature void update(const QRectF& = QRectF()).

QGraphicsScene.update (self, float, float, float, float)

list-of-QGraphicsView QGraphicsScene.views (self)

QGraphicsScene.wheelEvent (self, QGraphicsSceneWheelEvent)

float QGraphicsScene.width (self)


Qt Signal Documentation

void changed (const QList<QRectF>&)

This is the default overload of this signal.

void sceneRectChanged (const QRectF&)

This is the default overload of this signal.

void selectionChanged ()

This is the default overload of this signal.


PyQt 4.8 for X11Copyright © Riverbank Computing Ltd and Nokia 2010Qt 4.7.0