QGraphicsScene¶
- PyQt5.QtWidgets.QGraphicsScene
Inherits from QObject.
Description¶
TODO
Classes¶
Enums¶
- ItemIndexMethod
TODO
Member
Value
Description
BspTreeIndex TODO
TODO
NoIndex TODO
TODO
- SceneLayer
TODO
Member
Value
Description
AllLayers TODO
TODO
BackgroundLayer TODO
TODO
ForegroundLayer TODO
TODO
ItemLayer TODO
TODO
Methods¶
- __init__(parent: QObject = None)
TODO
- __init__(float, float, float, float, parent: QObject = None)
TODO
- activePanel() → QGraphicsItem
TODO
- activeWindow() → QGraphicsWidget
TODO
- addEllipse(QRectF, pen: Union[QPen, QColor, GlobalColor, QGradient] = QPen(), brush: Union[QBrush, QColor, GlobalColor, QGradient] = QBrush()) → QGraphicsEllipseItem
TODO
- addEllipse(float, float, float, float, pen: Union[QPen, QColor, GlobalColor, QGradient] = QPen(), brush: Union[QBrush, QColor, GlobalColor, QGradient] = QBrush()) → QGraphicsEllipseItem
TODO
- addItem(QGraphicsItem)
TODO
- addLine(QLineF, pen: Union[QPen, QColor, GlobalColor, QGradient] = QPen()) → QGraphicsLineItem
TODO
- addLine(float, float, float, float, pen: Union[QPen, QColor, GlobalColor, QGradient] = QPen()) → QGraphicsLineItem
TODO
- addPath(QPainterPath, pen: Union[QPen, QColor, GlobalColor, QGradient] = QPen(), brush: Union[QBrush, QColor, GlobalColor, QGradient] = QBrush()) → QGraphicsPathItem
TODO
- addPixmap(QPixmap) → QGraphicsPixmapItem
TODO
- addPolygon(QPolygonF, pen: Union[QPen, QColor, GlobalColor, QGradient] = QPen(), brush: Union[QBrush, QColor, GlobalColor, QGradient] = QBrush()) → QGraphicsPolygonItem
TODO
- addRect(QRectF, pen: Union[QPen, QColor, GlobalColor, QGradient] = QPen(), brush: Union[QBrush, QColor, GlobalColor, QGradient] = QBrush()) → QGraphicsRectItem
TODO
- addRect(float, float, float, float, pen: Union[QPen, QColor, GlobalColor, QGradient] = QPen(), brush: Union[QBrush, QColor, GlobalColor, QGradient] = QBrush()) → QGraphicsRectItem
TODO
- addSimpleText(str, font: QFont = QFont()) → QGraphicsSimpleTextItem
TODO
- addText(str, font: QFont = QFont()) → QGraphicsTextItem
TODO
- addWidget(QWidget, flags: Union[WindowFlags, WindowType] = Qt.WindowFlags()) → QGraphicsProxyWidget
TODO
- advance()
TODO
- backgroundBrush() → QBrush
TODO
- bspTreeDepth() → int
TODO
- clear()
TODO
- clearFocus()
TODO
- clearSelection()
TODO
- collidingItems(QGraphicsItem, mode: ItemSelectionMode = IntersectsItemShape) → List[QGraphicsItem]
TODO
- contextMenuEvent(QGraphicsSceneContextMenuEvent)
TODO
- createItemGroup(Iterable[QGraphicsItem]) → QGraphicsItemGroup
TODO
- destroyItemGroup(QGraphicsItemGroup)
TODO
- dragEnterEvent(QGraphicsSceneDragDropEvent)
TODO
- dragLeaveEvent(QGraphicsSceneDragDropEvent)
TODO
- dragMoveEvent(QGraphicsSceneDragDropEvent)
TODO
- dropEvent(QGraphicsSceneDragDropEvent)
TODO
- event(QEvent) → bool
TODO
- focusInEvent(QFocusEvent)
TODO
- focusItem() → QGraphicsItem
TODO
- focusNextPrevChild(bool) → bool
TODO
- focusOnTouch() → bool
TODO
- focusOutEvent(QFocusEvent)
TODO
- font() → QFont
TODO
- foregroundBrush() → QBrush
TODO
- hasFocus() → bool
TODO
- height() → float
TODO
- helpEvent(QGraphicsSceneHelpEvent)
TODO
- inputMethodEvent(QInputMethodEvent)
TODO
- inputMethodQuery(InputMethodQuery) → Any
TODO
- invalidate(rect: QRectF = QRectF(), layers: Union[SceneLayers, SceneLayer] = AllLayers)
TODO
- invalidate(float, float, float, float, layers: Union[SceneLayers, SceneLayer] = AllLayers)
TODO
- isActive() → bool
TODO
- itemAt(Union[QPointF, QPoint], QTransform) → QGraphicsItem
TODO
- itemAt(float, float, QTransform) → QGraphicsItem
TODO
- itemIndexMethod() → ItemIndexMethod
TODO
- items(order: SortOrder = DescendingOrder) → List[QGraphicsItem]
TODO
- items(Union[QPointF, QPoint], mode: ItemSelectionMode = IntersectsItemShape, order: SortOrder = DescendingOrder, deviceTransform: QTransform = QTransform()) → List[QGraphicsItem]
TODO
- items(QRectF, mode: ItemSelectionMode = IntersectsItemShape, order: SortOrder = DescendingOrder, deviceTransform: QTransform = QTransform()) → List[QGraphicsItem]
TODO
- items(QPolygonF, mode: ItemSelectionMode = IntersectsItemShape, order: SortOrder = DescendingOrder, deviceTransform: QTransform = QTransform()) → List[QGraphicsItem]
TODO
- items(QPainterPath, mode: ItemSelectionMode = IntersectsItemShape, order: SortOrder = DescendingOrder, deviceTransform: QTransform = QTransform()) → List[QGraphicsItem]
TODO
- items(float, float, float, float, ItemSelectionMode, SortOrder, deviceTransform: QTransform = QTransform()) → List[QGraphicsItem]
TODO
- itemsBoundingRect() → QRectF
TODO
- keyPressEvent(QKeyEvent)
TODO
- keyReleaseEvent(QKeyEvent)
TODO
- minimumRenderSize() → float
TODO
- mouseDoubleClickEvent(QGraphicsSceneMouseEvent)
TODO
- mouseGrabberItem() → QGraphicsItem
TODO
- mouseMoveEvent(QGraphicsSceneMouseEvent)
TODO
- mousePressEvent(QGraphicsSceneMouseEvent)
TODO
- mouseReleaseEvent(QGraphicsSceneMouseEvent)
TODO
- palette() → QPalette
TODO
- removeItem(QGraphicsItem)
TODO
- render(QPainter, target: QRectF = QRectF(), source: QRectF = QRectF(), mode: AspectRatioMode = KeepAspectRatio)
TODO
- sceneRect() → QRectF
TODO
- selectedItems() → List[QGraphicsItem]
TODO
- selectionArea() → QPainterPath
TODO
- sendEvent(QGraphicsItem, QEvent) → bool
TODO
- setActivePanel(QGraphicsItem)
TODO
- setActiveWindow(QGraphicsWidget)
TODO
- setBackgroundBrush(Union[QBrush, QColor, GlobalColor, QGradient])
TODO
- setBspTreeDepth(int)
TODO
- setFocus(focusReason: FocusReason = OtherFocusReason)
TODO
- setFocusItem(QGraphicsItem, focusReason: FocusReason = OtherFocusReason)
TODO
- setFocusOnTouch(bool)
TODO
- setFont(QFont)
TODO
- setForegroundBrush(Union[QBrush, QColor, GlobalColor, QGradient])
TODO
- setItemIndexMethod(ItemIndexMethod)
TODO
- setMinimumRenderSize(float)
TODO
- setPalette(QPalette)
TODO
- setSceneRect(QRectF)
TODO
- setSceneRect(float, float, float, float)
TODO
- setSelectionArea(QPainterPath, QTransform)
TODO
- setSelectionArea(QPainterPath, mode: ItemSelectionMode = IntersectsItemShape, deviceTransform: QTransform = QTransform())
TODO
- setSelectionArea(QPainterPath, ItemSelectionOperation, mode: ItemSelectionMode = IntersectsItemShape, deviceTransform: QTransform = QTransform())
TODO
- setStickyFocus(bool)
TODO
- setStyle(QStyle)
TODO
- stickyFocus() → bool
TODO
- style() → QStyle
TODO
- update(rect: QRectF = QRectF())
TODO
- update(float, float, float, float)
TODO
- views() → List[QGraphicsView]
TODO
- wheelEvent(QGraphicsSceneWheelEvent)
TODO
- width() → float
TODO
Signals¶
- changed(Iterable[QRectF])
TODO
- focusItemChanged(QGraphicsItem, QGraphicsItem, FocusReason)
TODO
- sceneRectChanged(QRectF)
TODO
- selectionChanged()
TODO