API reference - Class QGraphicsScene

Notation used in Ruby API documentation

Module: QtWidgets

Description: Binding of QGraphicsScene

Class hierarchy: QGraphicsScene » QObject

Sub-classes: ItemIndexMethod, QFlags_ItemIndexMethod, SceneLayer, QFlags_SceneLayer

Public constructors

new QGraphicsScenenew(QObject ptr parent = nullptr)Constructor QGraphicsScene::QGraphicsScene(QObject *parent)
new QGraphicsScenenew(const QRectF sceneRect,
QObject ptr parent = nullptr)
Constructor QGraphicsScene::QGraphicsScene(const QRectF &sceneRect, QObject *parent)
new QGraphicsScenenew(double x,
double y,
double width,
double height,
QObject ptr parent = nullptr)
Constructor QGraphicsScene::QGraphicsScene(double x, double y, double width, double height, QObject *parent)

Public methods

[const]QGraphicsScene ptr_const_castReturns a non-const reference to self.
void_createEnsures the C++ object is created
void_destroyExplicitly destroys the object
[const]bool_destroyed?Returns a value indicating whether the object was already destroyed
[const]bool_is_const_object?Returns a value indicating whether the reference is a const reference
void_manageMarks the object as managed by the script side.
void_unmanageMarks the object as no longer owned by the script side.
[const]QGraphicsItem ptractivePanelMethod QGraphicsItem *QGraphicsScene::activePanel()
voidactivePanel=(QGraphicsItem ptr item)Method void QGraphicsScene::setActivePanel(QGraphicsItem *item)
[const]QGraphicsWidget ptractiveWindowMethod QGraphicsWidget *QGraphicsScene::activeWindow()
voidactiveWindow=(QGraphicsWidget ptr widget)Method void QGraphicsScene::setActiveWindow(QGraphicsWidget *widget)
QGraphicsEllipseItem ptraddEllipse(const QRectF rect,
const QPen pen = QPen(),
const QBrush brush = QBrush())
Method QGraphicsEllipseItem *QGraphicsScene::addEllipse(const QRectF &rect, const QPen &pen, const QBrush &brush)
QGraphicsEllipseItem ptraddEllipse(double x,
double y,
double w,
double h,
const QPen pen = QPen(),
const QBrush brush = QBrush())
Method QGraphicsEllipseItem *QGraphicsScene::addEllipse(double x, double y, double w, double h, const QPen &pen, const QBrush &brush)
voidaddItem(QGraphicsItem ptr item)Method void QGraphicsScene::addItem(QGraphicsItem *item)
QGraphicsLineItem ptraddLine(const QLineF line,
const QPen pen = QPen())
Method QGraphicsLineItem *QGraphicsScene::addLine(const QLineF &line, const QPen &pen)
QGraphicsLineItem ptraddLine(double x1,
double y1,
double x2,
double y2,
const QPen pen = QPen())
Method QGraphicsLineItem *QGraphicsScene::addLine(double x1, double y1, double x2, double y2, const QPen &pen)
QGraphicsPathItem ptraddPath(const QPainterPath path,
const QPen pen = QPen(),
const QBrush brush = QBrush())
Method QGraphicsPathItem *QGraphicsScene::addPath(const QPainterPath &path, const QPen &pen, const QBrush &brush)
QGraphicsPixmapItem ptraddPixmap(const QPixmap pixmap)Method QGraphicsPixmapItem *QGraphicsScene::addPixmap(const QPixmap &pixmap)
QGraphicsPolygonItem ptraddPolygon(const QPolygonF polygon,
const QPen pen = QPen(),
const QBrush brush = QBrush())
Method QGraphicsPolygonItem *QGraphicsScene::addPolygon(const QPolygonF &polygon, const QPen &pen, const QBrush &brush)
QGraphicsRectItem ptraddRect(const QRectF rect,
const QPen pen = QPen(),
const QBrush brush = QBrush())
Method QGraphicsRectItem *QGraphicsScene::addRect(const QRectF &rect, const QPen &pen, const QBrush &brush)
QGraphicsRectItem ptraddRect(double x,
double y,
double w,
double h,
const QPen pen = QPen(),
const QBrush brush = QBrush())
Method QGraphicsRectItem *QGraphicsScene::addRect(double x, double y, double w, double h, const QPen &pen, const QBrush &brush)
QGraphicsSimpleTextItem ptraddSimpleText(string text,
const QFont font = QFont())
Method QGraphicsSimpleTextItem *QGraphicsScene::addSimpleText(const QString &text, const QFont &font)
QGraphicsTextItem ptraddText(string text,
const QFont font = QFont())
Method QGraphicsTextItem *QGraphicsScene::addText(const QString &text, const QFont &font)
QGraphicsProxyWidget ptraddWidget(QWidget ptr widget,
Qt_QFlags_WindowType wFlags = Qt::WindowFlags())
Method QGraphicsProxyWidget *QGraphicsScene::addWidget(QWidget *widget, QFlags<Qt::WindowType> wFlags)
voidadvanceMethod void QGraphicsScene::advance()
[const]QBrushbackgroundBrushMethod QBrush QGraphicsScene::backgroundBrush()
voidbackgroundBrush=(const QBrush brush)Method void QGraphicsScene::setBackgroundBrush(const QBrush &brush)
[const]intbspTreeDepthMethod int QGraphicsScene::bspTreeDepth()
voidbspTreeDepth=(int depth)Method void QGraphicsScene::setBspTreeDepth(int depth)
[signal]voidchanged(QRectF[] region)Signal declaration for QGraphicsScene::changed(const QList<QRectF> &region)
voidclearMethod void QGraphicsScene::clear()
voidclearFocusMethod void QGraphicsScene::clearFocus()
voidclearSelectionMethod void QGraphicsScene::clearSelection()
[const]QGraphicsItem ptr[]collidingItems(const QGraphicsItem ptr item,
const Qt_ItemSelectionMode mode = Qt::IntersectsItemShape)
Method QList<QGraphicsItem *> QGraphicsScene::collidingItems(const QGraphicsItem *item, Qt::ItemSelectionMode mode)
QGraphicsItemGroup ptrcreateItemGroup(QGraphicsItem ptr[] items)Method QGraphicsItemGroup *QGraphicsScene::createItemGroup(const QList<QGraphicsItem *> &items)
voiddestroyItemGroup(QGraphicsItemGroup ptr group)Method void QGraphicsScene::destroyItemGroup(QGraphicsItemGroup *group)
[signal]voiddestroyed(QObject ptr arg1)Signal declaration for QGraphicsScene::destroyed(QObject *)
voidemit_changed(QRectF[] region)Emitter for signal void QGraphicsScene::changed(const QList<QRectF> &region)
voidemit_destroyed(QObject ptr arg1 = nullptr)Emitter for signal void QGraphicsScene::destroyed(QObject *)
voidemit_focusItemChanged(QGraphicsItem ptr newFocus,
QGraphicsItem ptr oldFocus,
const Qt_FocusReason reason)
Emitter for signal void QGraphicsScene::focusItemChanged(QGraphicsItem *newFocus, QGraphicsItem *oldFocus, Qt::FocusReason reason)
voidemit_objectNameChanged(string objectName)Emitter for signal void QGraphicsScene::objectNameChanged(const QString &objectName)
voidemit_sceneRectChanged(const QRectF rect)Emitter for signal void QGraphicsScene::sceneRectChanged(const QRectF &rect)
voidemit_selectionChangedEmitter for signal void QGraphicsScene::selectionChanged()
[const]QGraphicsItem ptrfocusItemMethod QGraphicsItem *QGraphicsScene::focusItem()
[signal]voidfocusItemChanged(QGraphicsItem ptr newFocus,
QGraphicsItem ptr oldFocus,
const Qt_FocusReason reason)
Signal declaration for QGraphicsScene::focusItemChanged(QGraphicsItem *newFocus, QGraphicsItem *oldFocus, Qt::FocusReason reason)
[const]boolfocusOnTouchMethod bool QGraphicsScene::focusOnTouch()
voidfocusOnTouch=(bool enabled)Method void QGraphicsScene::setFocusOnTouch(bool enabled)
[const]QFontfontMethod QFont QGraphicsScene::font()
voidfont=(const QFont font)Method void QGraphicsScene::setFont(const QFont &font)
[const]QBrushforegroundBrushMethod QBrush QGraphicsScene::foregroundBrush()
voidforegroundBrush=(const QBrush brush)Method void QGraphicsScene::setForegroundBrush(const QBrush &brush)
[const]boolhasFocusMethod bool QGraphicsScene::hasFocus()
[const]doubleheightMethod double QGraphicsScene::height()
[const]variantinputMethodQuery(const Qt_InputMethodQuery query)Virtual method QVariant QGraphicsScene::inputMethodQuery(Qt::InputMethodQuery query)
voidinvalidate(double x,
double y,
double w,
double h,
QGraphicsScene_QFlags_SceneLayer layers = QGraphicsScene::AllLayers)
Method void QGraphicsScene::invalidate(double x, double y, double w, double h, QFlags<QGraphicsScene::SceneLayer> layers)
voidinvalidate(const QRectF rect = QRectF(),
QGraphicsScene_QFlags_SceneLayer layers = QGraphicsScene::AllLayers)
Method void QGraphicsScene::invalidate(const QRectF &rect, QFlags<QGraphicsScene::SceneLayer> layers)
[const]boolisActive?Method bool QGraphicsScene::isActive()
[const]boolisSortCacheEnabled?Method bool QGraphicsScene::isSortCacheEnabled()
[const]QGraphicsItem ptritemAt(const QPointF pos,
const QTransform deviceTransform)
Method QGraphicsItem *QGraphicsScene::itemAt(const QPointF &pos, const QTransform &deviceTransform)
[const]QGraphicsItem ptritemAt(double x,
double y,
const QTransform deviceTransform)
Method QGraphicsItem *QGraphicsScene::itemAt(double x, double y, const QTransform &deviceTransform)
[const]QGraphicsScene_ItemIndexMethoditemIndexMethodMethod QGraphicsScene::ItemIndexMethod QGraphicsScene::itemIndexMethod()
voiditemIndexMethod=(const QGraphicsScene_ItemIndexMethod method)Method void QGraphicsScene::setItemIndexMethod(QGraphicsScene::ItemIndexMethod method)
[const]QGraphicsItem ptr[]items(const Qt_SortOrder order = Qt::DescendingOrder)Method QList<QGraphicsItem *> QGraphicsScene::items(Qt::SortOrder order)
[const]QGraphicsItem ptr[]items(const QPointF pos,
const Qt_ItemSelectionMode mode = Qt::IntersectsItemShape,
const Qt_SortOrder order = Qt::DescendingOrder,
const QTransform deviceTransform = QTransform())
Method QList<QGraphicsItem *> QGraphicsScene::items(const QPointF &pos, Qt::ItemSelectionMode mode, Qt::SortOrder order, const QTransform &deviceTransform)
[const]QGraphicsItem ptr[]items(const QRectF rect,
const Qt_ItemSelectionMode mode = Qt::IntersectsItemShape,
const Qt_SortOrder order = Qt::DescendingOrder,
const QTransform deviceTransform = QTransform())
Method QList<QGraphicsItem *> QGraphicsScene::items(const QRectF &rect, Qt::ItemSelectionMode mode, Qt::SortOrder order, const QTransform &deviceTransform)
[const]QGraphicsItem ptr[]items(const QPolygonF polygon,
const Qt_ItemSelectionMode mode = Qt::IntersectsItemShape,
const Qt_SortOrder order = Qt::DescendingOrder,
const QTransform deviceTransform = QTransform())
Method QList<QGraphicsItem *> QGraphicsScene::items(const QPolygonF &polygon, Qt::ItemSelectionMode mode, Qt::SortOrder order, const QTransform &deviceTransform)
[const]QGraphicsItem ptr[]items(const QPainterPath path,
const Qt_ItemSelectionMode mode = Qt::IntersectsItemShape,
const Qt_SortOrder order = Qt::DescendingOrder,
const QTransform deviceTransform = QTransform())
Method QList<QGraphicsItem *> QGraphicsScene::items(const QPainterPath &path, Qt::ItemSelectionMode mode, Qt::SortOrder order, const QTransform &deviceTransform)
[const]QGraphicsItem ptr[]items(double x,
double y,
double w,
double h,
const Qt_ItemSelectionMode mode,
const Qt_SortOrder order,
const QTransform deviceTransform = QTransform())
Method QList<QGraphicsItem *> QGraphicsScene::items(double x, double y, double w, double h, Qt::ItemSelectionMode mode, Qt::SortOrder order, const QTransform &deviceTransform)
[const]QRectFitemsBoundingRectMethod QRectF QGraphicsScene::itemsBoundingRect()
[const]doubleminimumRenderSizeMethod double QGraphicsScene::minimumRenderSize()
voidminimumRenderSize=(double minSize)Method void QGraphicsScene::setMinimumRenderSize(double minSize)
[const]QGraphicsItem ptrmouseGrabberItemMethod QGraphicsItem *QGraphicsScene::mouseGrabberItem()
[signal]voidobjectNameChanged(string objectName)Signal declaration for QGraphicsScene::objectNameChanged(const QString &objectName)
[const]QPalettepaletteMethod QPalette QGraphicsScene::palette()
voidpalette=(const QPalette palette)Method void QGraphicsScene::setPalette(const QPalette &palette)
voidremoveItem(QGraphicsItem ptr item)Method void QGraphicsScene::removeItem(QGraphicsItem *item)
voidrender(QPainter ptr painter,
const QRectF target = QRectF(),
const QRectF source = QRectF(),
const Qt_AspectRatioMode aspectRatioMode = Qt::KeepAspectRatio)
Method void QGraphicsScene::render(QPainter *painter, const QRectF &target, const QRectF &source, Qt::AspectRatioMode aspectRatioMode)
[const]QRectFsceneRectMethod QRectF QGraphicsScene::sceneRect()
voidsceneRect=(const QRectF rect)Method void QGraphicsScene::setSceneRect(const QRectF &rect)
[signal]voidsceneRectChanged(const QRectF rect)Signal declaration for QGraphicsScene::sceneRectChanged(const QRectF &rect)
[const]QGraphicsItem ptr[]selectedItemsMethod QList<QGraphicsItem *> QGraphicsScene::selectedItems()
[const]QPainterPathselectionAreaMethod QPainterPath QGraphicsScene::selectionArea()
[signal]voidselectionChangedSignal declaration for QGraphicsScene::selectionChanged()
boolsendEvent(QGraphicsItem ptr item,
QEvent ptr event)
Method bool QGraphicsScene::sendEvent(QGraphicsItem *item, QEvent *event)
voidsetActivePanel(QGraphicsItem ptr item)Method void QGraphicsScene::setActivePanel(QGraphicsItem *item)
voidsetActiveWindow(QGraphicsWidget ptr widget)Method void QGraphicsScene::setActiveWindow(QGraphicsWidget *widget)
voidsetBackgroundBrush(const QBrush brush)Method void QGraphicsScene::setBackgroundBrush(const QBrush &brush)
voidsetBspTreeDepth(int depth)Method void QGraphicsScene::setBspTreeDepth(int depth)
voidsetFocus(const Qt_FocusReason focusReason = Qt::OtherFocusReason)Method void QGraphicsScene::setFocus(Qt::FocusReason focusReason)
voidsetFocusItem(QGraphicsItem ptr item,
const Qt_FocusReason focusReason = Qt::OtherFocusReason)
Method void QGraphicsScene::setFocusItem(QGraphicsItem *item, Qt::FocusReason focusReason)
voidsetFocusOnTouch(bool enabled)Method void QGraphicsScene::setFocusOnTouch(bool enabled)
voidsetFont(const QFont font)Method void QGraphicsScene::setFont(const QFont &font)
voidsetForegroundBrush(const QBrush brush)Method void QGraphicsScene::setForegroundBrush(const QBrush &brush)
voidsetItemIndexMethod(const QGraphicsScene_ItemIndexMethod method)Method void QGraphicsScene::setItemIndexMethod(QGraphicsScene::ItemIndexMethod method)
voidsetMinimumRenderSize(double minSize)Method void QGraphicsScene::setMinimumRenderSize(double minSize)
voidsetPalette(const QPalette palette)Method void QGraphicsScene::setPalette(const QPalette &palette)
voidsetSceneRect(const QRectF rect)Method void QGraphicsScene::setSceneRect(const QRectF &rect)
voidsetSceneRect(double x,
double y,
double w,
double h)
Method void QGraphicsScene::setSceneRect(double x, double y, double w, double h)
voidsetSelectionArea(const QPainterPath path,
const QTransform deviceTransform)
Method void QGraphicsScene::setSelectionArea(const QPainterPath &path, const QTransform &deviceTransform)
voidsetSelectionArea(const QPainterPath path,
const Qt_ItemSelectionMode mode = Qt::IntersectsItemShape,
const QTransform deviceTransform = QTransform())
Method void QGraphicsScene::setSelectionArea(const QPainterPath &path, Qt::ItemSelectionMode mode, const QTransform &deviceTransform)
voidsetSelectionArea(const QPainterPath path,
const Qt_ItemSelectionOperation selectionOperation,
const Qt_ItemSelectionMode mode = Qt::IntersectsItemShape,
const QTransform deviceTransform = QTransform())
Method void QGraphicsScene::setSelectionArea(const QPainterPath &path, Qt::ItemSelectionOperation selectionOperation, Qt::ItemSelectionMode mode, const QTransform &deviceTransform)
voidsetSortCacheEnabled(bool enabled)Method void QGraphicsScene::setSortCacheEnabled(bool enabled)
voidsetStickyFocus(bool enabled)Method void QGraphicsScene::setStickyFocus(bool enabled)
voidsetStyle(QStyle ptr style)Method void QGraphicsScene::setStyle(QStyle *style)
[const]boolsortCacheEnabledMethod bool QGraphicsScene::isSortCacheEnabled()
voidsortCacheEnabled=(bool enabled)Method void QGraphicsScene::setSortCacheEnabled(bool enabled)
[const]boolstickyFocusMethod bool QGraphicsScene::stickyFocus()
voidstickyFocus=(bool enabled)Method void QGraphicsScene::setStickyFocus(bool enabled)
[const]QStyle ptrstyleMethod QStyle *QGraphicsScene::style()
voidstyle=(QStyle ptr style)Method void QGraphicsScene::setStyle(QStyle *style)
voidupdate(double x,
double y,
double w,
double h)
Method void QGraphicsScene::update(double x, double y, double w, double h)
voidupdate(const QRectF rect = QRectF())Method void QGraphicsScene::update(const QRectF &rect)
[const]QGraphicsView ptr[]viewsMethod QList<QGraphicsView *> QGraphicsScene::views()
[const]doublewidthMethod double QGraphicsScene::width()

Public static methods and constants

[static,const]QGraphicsScene_SceneLayerAllLayersEnum constant QGraphicsScene::AllLayers
[static,const]QGraphicsScene_SceneLayerBackgroundLayerEnum constant QGraphicsScene::BackgroundLayer
[static,const]QGraphicsScene_ItemIndexMethodBspTreeIndexEnum constant QGraphicsScene::BspTreeIndex
[static,const]QGraphicsScene_SceneLayerForegroundLayerEnum constant QGraphicsScene::ForegroundLayer
[static,const]QGraphicsScene_SceneLayerItemLayerEnum constant QGraphicsScene::ItemLayer
[static,const]QGraphicsScene_ItemIndexMethodNoIndexEnum constant QGraphicsScene::NoIndex
QMetaObjectstaticMetaObjectObtains the static MetaObject for this class.
stringtr(string s,
string c = nullptr,
int n = -1)
Static method QString QGraphicsScene::tr(const char *s, const char *c, int n)
stringtrUtf8(string s,
string c = nullptr,
int n = -1)
Static method QString QGraphicsScene::trUtf8(const char *s, const char *c, int n)

Protected methods (static, non-static and constructors)

voidchildEvent(QChildEvent ptr event)Virtual method void QGraphicsScene::childEvent(QChildEvent *event)
voidcontextMenuEvent(QGraphicsSceneContextMenuEvent ptr event)Virtual method void QGraphicsScene::contextMenuEvent(QGraphicsSceneContextMenuEvent *event)
voidcustomEvent(QEvent ptr event)Virtual method void QGraphicsScene::customEvent(QEvent *event)
voiddisconnectNotify(const QMetaMethod signal)Virtual method void QGraphicsScene::disconnectNotify(const QMetaMethod &signal)
voiddragEnterEvent(QGraphicsSceneDragDropEvent ptr event)Virtual method void QGraphicsScene::dragEnterEvent(QGraphicsSceneDragDropEvent *event)
voiddragLeaveEvent(QGraphicsSceneDragDropEvent ptr event)Virtual method void QGraphicsScene::dragLeaveEvent(QGraphicsSceneDragDropEvent *event)
voiddragMoveEvent(QGraphicsSceneDragDropEvent ptr event)Virtual method void QGraphicsScene::dragMoveEvent(QGraphicsSceneDragDropEvent *event)
voiddrawBackground(QPainter ptr painter,
const QRectF rect)
Virtual method void QGraphicsScene::drawBackground(QPainter *painter, const QRectF &rect)
voiddrawForeground(QPainter ptr painter,
const QRectF rect)
Virtual method void QGraphicsScene::drawForeground(QPainter *painter, const QRectF &rect)
voiddropEvent(QGraphicsSceneDragDropEvent ptr event)Virtual method void QGraphicsScene::dropEvent(QGraphicsSceneDragDropEvent *event)
boolevent(QEvent ptr event)Virtual method bool QGraphicsScene::event(QEvent *event)
booleventFilter(QObject ptr watched,
QEvent ptr event)
Virtual method bool QGraphicsScene::eventFilter(QObject *watched, QEvent *event)
voidfocusInEvent(QFocusEvent ptr event)Virtual method void QGraphicsScene::focusInEvent(QFocusEvent *event)
boolfocusNextPrevChild(bool next)Method bool QGraphicsScene::focusNextPrevChild(bool next)
voidfocusOutEvent(QFocusEvent ptr event)Virtual method void QGraphicsScene::focusOutEvent(QFocusEvent *event)
voidhelpEvent(QGraphicsSceneHelpEvent ptr event)Virtual method void QGraphicsScene::helpEvent(QGraphicsSceneHelpEvent *event)
voidinputMethodEvent(QInputMethodEvent ptr event)Virtual method void QGraphicsScene::inputMethodEvent(QInputMethodEvent *event)
[const]boolisSignalConnected(const QMetaMethod signal)Method bool QGraphicsScene::isSignalConnected(const QMetaMethod &signal)
voidkeyPressEvent(QKeyEvent ptr event)Virtual method void QGraphicsScene::keyPressEvent(QKeyEvent *event)
voidkeyReleaseEvent(QKeyEvent ptr event)Virtual method void QGraphicsScene::keyReleaseEvent(QKeyEvent *event)
voidmouseDoubleClickEvent(QGraphicsSceneMouseEvent ptr event)Virtual method void QGraphicsScene::mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event)
voidmouseMoveEvent(QGraphicsSceneMouseEvent ptr event)Virtual method void QGraphicsScene::mouseMoveEvent(QGraphicsSceneMouseEvent *event)
voidmousePressEvent(QGraphicsSceneMouseEvent ptr event)Virtual method void QGraphicsScene::mousePressEvent(QGraphicsSceneMouseEvent *event)
voidmouseReleaseEvent(QGraphicsSceneMouseEvent ptr event)Virtual method void QGraphicsScene::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
[const]intreceivers(string signal)Method int QGraphicsScene::receivers(const char *signal)
[const]QObject ptrsenderMethod QObject *QGraphicsScene::sender()
[const]intsenderSignalIndexMethod int QGraphicsScene::senderSignalIndex()
voidtimerEvent(QTimerEvent ptr event)Virtual method void QGraphicsScene::timerEvent(QTimerEvent *event)
voidwheelEvent(QGraphicsSceneWheelEvent ptr event)Virtual method void QGraphicsScene::wheelEvent(QGraphicsSceneWheelEvent *event)

Detailed description

AllLayers

Signature: [static,const] QGraphicsScene_SceneLayer AllLayers

Description: Enum constant QGraphicsScene::AllLayers

Python specific notes:
The object exposes a readable attribute 'AllLayers'. This is the getter.

BackgroundLayer

Signature: [static,const] QGraphicsScene_SceneLayer BackgroundLayer

Description: Enum constant QGraphicsScene::BackgroundLayer

Python specific notes:
The object exposes a readable attribute 'BackgroundLayer'. This is the getter.

BspTreeIndex

Signature: [static,const] QGraphicsScene_ItemIndexMethod BspTreeIndex

Description: Enum constant QGraphicsScene::BspTreeIndex

Python specific notes:
The object exposes a readable attribute 'BspTreeIndex'. This is the getter.

ForegroundLayer

Signature: [static,const] QGraphicsScene_SceneLayer ForegroundLayer

Description: Enum constant QGraphicsScene::ForegroundLayer

Python specific notes:
The object exposes a readable attribute 'ForegroundLayer'. This is the getter.

ItemLayer

Signature: [static,const] QGraphicsScene_SceneLayer ItemLayer

Description: Enum constant QGraphicsScene::ItemLayer

Python specific notes:
The object exposes a readable attribute 'ItemLayer'. This is the getter.

NoIndex

Signature: [static,const] QGraphicsScene_ItemIndexMethod NoIndex

Description: Enum constant QGraphicsScene::NoIndex

Python specific notes:
The object exposes a readable attribute 'NoIndex'. This is the getter.

_const_cast

Signature: [const] QGraphicsScene ptr _const_cast

Description: Returns a non-const reference to self.

Basically, this method allows turning a const object reference to a non-const one. This method is provided as last resort to remove the constness from an object. Usually there is a good reason for a const object reference, so using this method may have undesired side effects.

This method has been introduced in version 0.29.6.

_create

Signature: void _create

Description: Ensures the C++ object is created

Use this method to ensure the C++ object is created, for example to ensure that resources are allocated. Usually C++ objects are created on demand and not necessarily when the script object is created.

_destroy

Signature: void _destroy

Description: Explicitly destroys the object

Explicitly destroys the object on C++ side if it was owned by the script interpreter. Subsequent access to this object will throw an exception. If the object is not owned by the script, this method will do nothing.

_destroyed?

Signature: [const] bool _destroyed?

Description: Returns a value indicating whether the object was already destroyed

This method returns true, if the object was destroyed, either explicitly or by the C++ side. The latter may happen, if the object is owned by a C++ object which got destroyed itself.

_is_const_object?

Signature: [const] bool _is_const_object?

Description: Returns a value indicating whether the reference is a const reference

This method returns true, if self is a const reference. In that case, only const methods may be called on self.

_manage

Signature: void _manage

Description: Marks the object as managed by the script side.

After calling this method on an object, the script side will be responsible for the management of the object. This method may be called if an object is returned from a C++ function and the object is known not to be owned by any C++ instance. If necessary, the script side may delete the object if the script's reference is no longer required.

Usually it's not required to call this method. It has been introduced in version 0.24.

_unmanage

Signature: void _unmanage

Description: Marks the object as no longer owned by the script side.

Calling this method will make this object no longer owned by the script's memory management. Instead, the object must be managed in some other way. Usually this method may be called if it is known that some C++ object holds and manages this object. Technically speaking, this method will turn the script's reference into a weak reference. After the script engine decides to delete the reference, the object itself will still exist. If the object is not managed otherwise, memory leaks will occur.

Usually it's not required to call this method. It has been introduced in version 0.24.

activePanel

Signature: [const] QGraphicsItem ptr activePanel

Description: Method QGraphicsItem *QGraphicsScene::activePanel()

Python specific notes:
The object exposes a readable attribute 'activePanel'. This is the getter.

activePanel=

Signature: void activePanel= (QGraphicsItem ptr item)

Description: Method void QGraphicsScene::setActivePanel(QGraphicsItem *item)

Python specific notes:
The object exposes a writable attribute 'activePanel'. This is the setter.

activeWindow

Signature: [const] QGraphicsWidget ptr activeWindow

Description: Method QGraphicsWidget *QGraphicsScene::activeWindow()

Python specific notes:
The object exposes a readable attribute 'activeWindow'. This is the getter.

activeWindow=

Signature: void activeWindow= (QGraphicsWidget ptr widget)

Description: Method void QGraphicsScene::setActiveWindow(QGraphicsWidget *widget)

Python specific notes:
The object exposes a writable attribute 'activeWindow'. This is the setter.

addEllipse

(1) Signature: QGraphicsEllipseItem ptr addEllipse (const QRectF rect, const QPen pen = QPen(), const QBrush brush = QBrush())

Description: Method QGraphicsEllipseItem *QGraphicsScene::addEllipse(const QRectF &rect, const QPen &pen, const QBrush &brush)

(2) Signature: QGraphicsEllipseItem ptr addEllipse (double x, double y, double w, double h, const QPen pen = QPen(), const QBrush brush = QBrush())

Description: Method QGraphicsEllipseItem *QGraphicsScene::addEllipse(double x, double y, double w, double h, const QPen &pen, const QBrush &brush)

addItem

Signature: void addItem (QGraphicsItem ptr item)

Description: Method void QGraphicsScene::addItem(QGraphicsItem *item)

addLine

(1) Signature: QGraphicsLineItem ptr addLine (const QLineF line, const QPen pen = QPen())

Description: Method QGraphicsLineItem *QGraphicsScene::addLine(const QLineF &line, const QPen &pen)

(2) Signature: QGraphicsLineItem ptr addLine (double x1, double y1, double x2, double y2, const QPen pen = QPen())

Description: Method QGraphicsLineItem *QGraphicsScene::addLine(double x1, double y1, double x2, double y2, const QPen &pen)

addPath

Signature: QGraphicsPathItem ptr addPath (const QPainterPath path, const QPen pen = QPen(), const QBrush brush = QBrush())

Description: Method QGraphicsPathItem *QGraphicsScene::addPath(const QPainterPath &path, const QPen &pen, const QBrush &brush)

addPixmap

Signature: QGraphicsPixmapItem ptr addPixmap (const QPixmap pixmap)

Description: Method QGraphicsPixmapItem *QGraphicsScene::addPixmap(const QPixmap &pixmap)

addPolygon

Signature: QGraphicsPolygonItem ptr addPolygon (const QPolygonF polygon, const QPen pen = QPen(), const QBrush brush = QBrush())

Description: Method QGraphicsPolygonItem *QGraphicsScene::addPolygon(const QPolygonF &polygon, const QPen &pen, const QBrush &brush)

addRect

(1) Signature: QGraphicsRectItem ptr addRect (const QRectF rect, const QPen pen = QPen(), const QBrush brush = QBrush())

Description: Method QGraphicsRectItem *QGraphicsScene::addRect(const QRectF &rect, const QPen &pen, const QBrush &brush)

(2) Signature: QGraphicsRectItem ptr addRect (double x, double y, double w, double h, const QPen pen = QPen(), const QBrush brush = QBrush())

Description: Method QGraphicsRectItem *QGraphicsScene::addRect(double x, double y, double w, double h, const QPen &pen, const QBrush &brush)

addSimpleText

Signature: QGraphicsSimpleTextItem ptr addSimpleText (string text, const QFont font = QFont())

Description: Method QGraphicsSimpleTextItem *QGraphicsScene::addSimpleText(const QString &text, const QFont &font)

addText

Signature: QGraphicsTextItem ptr addText (string text, const QFont font = QFont())

Description: Method QGraphicsTextItem *QGraphicsScene::addText(const QString &text, const QFont &font)

addWidget

Signature: QGraphicsProxyWidget ptr addWidget (QWidget ptr widget, Qt_QFlags_WindowType wFlags = Qt::WindowFlags())

Description: Method QGraphicsProxyWidget *QGraphicsScene::addWidget(QWidget *widget, QFlags<Qt::WindowType> wFlags)

advance

Signature: void advance

Description: Method void QGraphicsScene::advance()

backgroundBrush

Signature: [const] QBrush backgroundBrush

Description: Method QBrush QGraphicsScene::backgroundBrush()

Python specific notes:
The object exposes a readable attribute 'backgroundBrush'. This is the getter.

backgroundBrush=

Signature: void backgroundBrush= (const QBrush brush)

Description: Method void QGraphicsScene::setBackgroundBrush(const QBrush &brush)

Python specific notes:
The object exposes a writable attribute 'backgroundBrush'. This is the setter.

bspTreeDepth

Signature: [const] int bspTreeDepth

Description: Method int QGraphicsScene::bspTreeDepth()

Python specific notes:
The object exposes a readable attribute 'bspTreeDepth'. This is the getter.

bspTreeDepth=

Signature: void bspTreeDepth= (int depth)

Description: Method void QGraphicsScene::setBspTreeDepth(int depth)

Python specific notes:
The object exposes a writable attribute 'bspTreeDepth'. This is the setter.

changed

Signature: [signal] void changed (QRectF[] region)

Description: Signal declaration for QGraphicsScene::changed(const QList<QRectF> &region)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'changed'. This is the getter.
The object exposes a writable attribute 'changed'. This is the setter.

childEvent

Signature: void childEvent (QChildEvent ptr event)

Description: Virtual method void QGraphicsScene::childEvent(QChildEvent *event)

This method can be reimplemented in a derived class.

clear

Signature: void clear

Description: Method void QGraphicsScene::clear()

clearFocus

Signature: void clearFocus

Description: Method void QGraphicsScene::clearFocus()

clearSelection

Signature: void clearSelection

Description: Method void QGraphicsScene::clearSelection()

collidingItems

Signature: [const] QGraphicsItem ptr[] collidingItems (const QGraphicsItem ptr item, const Qt_ItemSelectionMode mode = Qt::IntersectsItemShape)

Description: Method QList<QGraphicsItem *> QGraphicsScene::collidingItems(const QGraphicsItem *item, Qt::ItemSelectionMode mode)

contextMenuEvent

Signature: void contextMenuEvent (QGraphicsSceneContextMenuEvent ptr event)

Description: Virtual method void QGraphicsScene::contextMenuEvent(QGraphicsSceneContextMenuEvent *event)

This method can be reimplemented in a derived class.

createItemGroup

Signature: QGraphicsItemGroup ptr createItemGroup (QGraphicsItem ptr[] items)

Description: Method QGraphicsItemGroup *QGraphicsScene::createItemGroup(const QList<QGraphicsItem *> &items)

customEvent

Signature: void customEvent (QEvent ptr event)

Description: Virtual method void QGraphicsScene::customEvent(QEvent *event)

This method can be reimplemented in a derived class.

destroyItemGroup

Signature: void destroyItemGroup (QGraphicsItemGroup ptr group)

Description: Method void QGraphicsScene::destroyItemGroup(QGraphicsItemGroup *group)

destroyed

Signature: [signal] void destroyed (QObject ptr arg1)

Description: Signal declaration for QGraphicsScene::destroyed(QObject *)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'destroyed'. This is the getter.
The object exposes a writable attribute 'destroyed'. This is the setter.

disconnectNotify

Signature: void disconnectNotify (const QMetaMethod signal)

Description: Virtual method void QGraphicsScene::disconnectNotify(const QMetaMethod &signal)

This method can be reimplemented in a derived class.

dragEnterEvent

Signature: void dragEnterEvent (QGraphicsSceneDragDropEvent ptr event)

Description: Virtual method void QGraphicsScene::dragEnterEvent(QGraphicsSceneDragDropEvent *event)

This method can be reimplemented in a derived class.

dragLeaveEvent

Signature: void dragLeaveEvent (QGraphicsSceneDragDropEvent ptr event)

Description: Virtual method void QGraphicsScene::dragLeaveEvent(QGraphicsSceneDragDropEvent *event)

This method can be reimplemented in a derived class.

dragMoveEvent

Signature: void dragMoveEvent (QGraphicsSceneDragDropEvent ptr event)

Description: Virtual method void QGraphicsScene::dragMoveEvent(QGraphicsSceneDragDropEvent *event)

This method can be reimplemented in a derived class.

drawBackground

Signature: void drawBackground (QPainter ptr painter, const QRectF rect)

Description: Virtual method void QGraphicsScene::drawBackground(QPainter *painter, const QRectF &rect)

This method can be reimplemented in a derived class.

drawForeground

Signature: void drawForeground (QPainter ptr painter, const QRectF rect)

Description: Virtual method void QGraphicsScene::drawForeground(QPainter *painter, const QRectF &rect)

This method can be reimplemented in a derived class.

dropEvent

Signature: void dropEvent (QGraphicsSceneDragDropEvent ptr event)

Description: Virtual method void QGraphicsScene::dropEvent(QGraphicsSceneDragDropEvent *event)

This method can be reimplemented in a derived class.

emit_changed

Signature: void emit_changed (QRectF[] region)

Description: Emitter for signal void QGraphicsScene::changed(const QList<QRectF> &region)

Call this method to emit this signal.

emit_destroyed

Signature: void emit_destroyed (QObject ptr arg1 = nullptr)

Description: Emitter for signal void QGraphicsScene::destroyed(QObject *)

Call this method to emit this signal.

emit_focusItemChanged

Signature: void emit_focusItemChanged (QGraphicsItem ptr newFocus, QGraphicsItem ptr oldFocus, const Qt_FocusReason reason)

Description: Emitter for signal void QGraphicsScene::focusItemChanged(QGraphicsItem *newFocus, QGraphicsItem *oldFocus, Qt::FocusReason reason)

Call this method to emit this signal.

emit_objectNameChanged

Signature: void emit_objectNameChanged (string objectName)

Description: Emitter for signal void QGraphicsScene::objectNameChanged(const QString &objectName)

Call this method to emit this signal.

emit_sceneRectChanged

Signature: void emit_sceneRectChanged (const QRectF rect)

Description: Emitter for signal void QGraphicsScene::sceneRectChanged(const QRectF &rect)

Call this method to emit this signal.

emit_selectionChanged

Signature: void emit_selectionChanged

Description: Emitter for signal void QGraphicsScene::selectionChanged()

Call this method to emit this signal.

event

Signature: bool event (QEvent ptr event)

Description: Virtual method bool QGraphicsScene::event(QEvent *event)

This method can be reimplemented in a derived class.

eventFilter

Signature: bool eventFilter (QObject ptr watched, QEvent ptr event)

Description: Virtual method bool QGraphicsScene::eventFilter(QObject *watched, QEvent *event)

This method can be reimplemented in a derived class.

focusInEvent

Signature: void focusInEvent (QFocusEvent ptr event)

Description: Virtual method void QGraphicsScene::focusInEvent(QFocusEvent *event)

This method can be reimplemented in a derived class.

focusItem

Signature: [const] QGraphicsItem ptr focusItem

Description: Method QGraphicsItem *QGraphicsScene::focusItem()

Python specific notes:
The object exposes a readable attribute 'focusItem'. This is the getter.

focusItemChanged

Signature: [signal] void focusItemChanged (QGraphicsItem ptr newFocus, QGraphicsItem ptr oldFocus, const Qt_FocusReason reason)

Description: Signal declaration for QGraphicsScene::focusItemChanged(QGraphicsItem *newFocus, QGraphicsItem *oldFocus, Qt::FocusReason reason)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'focusItemChanged'. This is the getter.
The object exposes a writable attribute 'focusItemChanged'. This is the setter.

focusNextPrevChild

Signature: bool focusNextPrevChild (bool next)

Description: Method bool QGraphicsScene::focusNextPrevChild(bool next)

This method is protected and can only be called from inside a derived class.

focusOnTouch

Signature: [const] bool focusOnTouch

Description: Method bool QGraphicsScene::focusOnTouch()

Python specific notes:
The object exposes a readable attribute 'focusOnTouch'. This is the getter.

focusOnTouch=

Signature: void focusOnTouch= (bool enabled)

Description: Method void QGraphicsScene::setFocusOnTouch(bool enabled)

Python specific notes:
The object exposes a writable attribute 'focusOnTouch'. This is the setter.

focusOutEvent

Signature: void focusOutEvent (QFocusEvent ptr event)

Description: Virtual method void QGraphicsScene::focusOutEvent(QFocusEvent *event)

This method can be reimplemented in a derived class.

font

Signature: [const] QFont font

Description: Method QFont QGraphicsScene::font()

Python specific notes:
The object exposes a readable attribute 'font'. This is the getter.

font=

Signature: void font= (const QFont font)

Description: Method void QGraphicsScene::setFont(const QFont &font)

Python specific notes:
The object exposes a writable attribute 'font'. This is the setter.

foregroundBrush

Signature: [const] QBrush foregroundBrush

Description: Method QBrush QGraphicsScene::foregroundBrush()

Python specific notes:
The object exposes a readable attribute 'foregroundBrush'. This is the getter.

foregroundBrush=

Signature: void foregroundBrush= (const QBrush brush)

Description: Method void QGraphicsScene::setForegroundBrush(const QBrush &brush)

Python specific notes:
The object exposes a writable attribute 'foregroundBrush'. This is the setter.

hasFocus

Signature: [const] bool hasFocus

Description: Method bool QGraphicsScene::hasFocus()

height

Signature: [const] double height

Description: Method double QGraphicsScene::height()

helpEvent

Signature: void helpEvent (QGraphicsSceneHelpEvent ptr event)

Description: Virtual method void QGraphicsScene::helpEvent(QGraphicsSceneHelpEvent *event)

This method can be reimplemented in a derived class.

inputMethodEvent

Signature: void inputMethodEvent (QInputMethodEvent ptr event)

Description: Virtual method void QGraphicsScene::inputMethodEvent(QInputMethodEvent *event)

This method can be reimplemented in a derived class.

inputMethodQuery

Signature: [const] variant inputMethodQuery (const Qt_InputMethodQuery query)

Description: Virtual method QVariant QGraphicsScene::inputMethodQuery(Qt::InputMethodQuery query)

This method can be reimplemented in a derived class.

invalidate

(1) Signature: void invalidate (double x, double y, double w, double h, QGraphicsScene_QFlags_SceneLayer layers = QGraphicsScene::AllLayers)

Description: Method void QGraphicsScene::invalidate(double x, double y, double w, double h, QFlags<QGraphicsScene::SceneLayer> layers)

(2) Signature: void invalidate (const QRectF rect = QRectF(), QGraphicsScene_QFlags_SceneLayer layers = QGraphicsScene::AllLayers)

Description: Method void QGraphicsScene::invalidate(const QRectF &rect, QFlags<QGraphicsScene::SceneLayer> layers)

isActive?

Signature: [const] bool isActive?

Description: Method bool QGraphicsScene::isActive()

isSignalConnected

Signature: [const] bool isSignalConnected (const QMetaMethod signal)

Description: Method bool QGraphicsScene::isSignalConnected(const QMetaMethod &signal)

This method is protected and can only be called from inside a derived class.

isSortCacheEnabled?

Signature: [const] bool isSortCacheEnabled?

Description: Method bool QGraphicsScene::isSortCacheEnabled()

Python specific notes:
The object exposes a readable attribute 'sortCacheEnabled'. This is the getter.

itemAt

(1) Signature: [const] QGraphicsItem ptr itemAt (const QPointF pos, const QTransform deviceTransform)

Description: Method QGraphicsItem *QGraphicsScene::itemAt(const QPointF &pos, const QTransform &deviceTransform)

(2) Signature: [const] QGraphicsItem ptr itemAt (double x, double y, const QTransform deviceTransform)

Description: Method QGraphicsItem *QGraphicsScene::itemAt(double x, double y, const QTransform &deviceTransform)

itemIndexMethod

Signature: [const] QGraphicsScene_ItemIndexMethod itemIndexMethod

Description: Method QGraphicsScene::ItemIndexMethod QGraphicsScene::itemIndexMethod()

Python specific notes:
The object exposes a readable attribute 'itemIndexMethod'. This is the getter.

itemIndexMethod=

Signature: void itemIndexMethod= (const QGraphicsScene_ItemIndexMethod method)

Description: Method void QGraphicsScene::setItemIndexMethod(QGraphicsScene::ItemIndexMethod method)

Python specific notes:
The object exposes a writable attribute 'itemIndexMethod'. This is the setter.

items

(1) Signature: [const] QGraphicsItem ptr[] items (const Qt_SortOrder order = Qt::DescendingOrder)

Description: Method QList<QGraphicsItem *> QGraphicsScene::items(Qt::SortOrder order)

(2) Signature: [const] QGraphicsItem ptr[] items (const QPointF pos, const Qt_ItemSelectionMode mode = Qt::IntersectsItemShape, const Qt_SortOrder order = Qt::DescendingOrder, const QTransform deviceTransform = QTransform())

Description: Method QList<QGraphicsItem *> QGraphicsScene::items(const QPointF &pos, Qt::ItemSelectionMode mode, Qt::SortOrder order, const QTransform &deviceTransform)

(3) Signature: [const] QGraphicsItem ptr[] items (const QRectF rect, const Qt_ItemSelectionMode mode = Qt::IntersectsItemShape, const Qt_SortOrder order = Qt::DescendingOrder, const QTransform deviceTransform = QTransform())

Description: Method QList<QGraphicsItem *> QGraphicsScene::items(const QRectF &rect, Qt::ItemSelectionMode mode, Qt::SortOrder order, const QTransform &deviceTransform)

(4) Signature: [const] QGraphicsItem ptr[] items (const QPolygonF polygon, const Qt_ItemSelectionMode mode = Qt::IntersectsItemShape, const Qt_SortOrder order = Qt::DescendingOrder, const QTransform deviceTransform = QTransform())

Description: Method QList<QGraphicsItem *> QGraphicsScene::items(const QPolygonF &polygon, Qt::ItemSelectionMode mode, Qt::SortOrder order, const QTransform &deviceTransform)

(5) Signature: [const] QGraphicsItem ptr[] items (const QPainterPath path, const Qt_ItemSelectionMode mode = Qt::IntersectsItemShape, const Qt_SortOrder order = Qt::DescendingOrder, const QTransform deviceTransform = QTransform())

Description: Method QList<QGraphicsItem *> QGraphicsScene::items(const QPainterPath &path, Qt::ItemSelectionMode mode, Qt::SortOrder order, const QTransform &deviceTransform)

(6) Signature: [const] QGraphicsItem ptr[] items (double x, double y, double w, double h, const Qt_ItemSelectionMode mode, const Qt_SortOrder order, const QTransform deviceTransform = QTransform())

Description: Method QList<QGraphicsItem *> QGraphicsScene::items(double x, double y, double w, double h, Qt::ItemSelectionMode mode, Qt::SortOrder order, const QTransform &deviceTransform)

itemsBoundingRect

Signature: [const] QRectF itemsBoundingRect

Description: Method QRectF QGraphicsScene::itemsBoundingRect()

keyPressEvent

Signature: void keyPressEvent (QKeyEvent ptr event)

Description: Virtual method void QGraphicsScene::keyPressEvent(QKeyEvent *event)

This method can be reimplemented in a derived class.

keyReleaseEvent

Signature: void keyReleaseEvent (QKeyEvent ptr event)

Description: Virtual method void QGraphicsScene::keyReleaseEvent(QKeyEvent *event)

This method can be reimplemented in a derived class.

minimumRenderSize

Signature: [const] double minimumRenderSize

Description: Method double QGraphicsScene::minimumRenderSize()

Python specific notes:
The object exposes a readable attribute 'minimumRenderSize'. This is the getter.

minimumRenderSize=

Signature: void minimumRenderSize= (double minSize)

Description: Method void QGraphicsScene::setMinimumRenderSize(double minSize)

Python specific notes:
The object exposes a writable attribute 'minimumRenderSize'. This is the setter.

mouseDoubleClickEvent

Signature: void mouseDoubleClickEvent (QGraphicsSceneMouseEvent ptr event)

Description: Virtual method void QGraphicsScene::mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event)

This method can be reimplemented in a derived class.

mouseGrabberItem

Signature: [const] QGraphicsItem ptr mouseGrabberItem

Description: Method QGraphicsItem *QGraphicsScene::mouseGrabberItem()

mouseMoveEvent

Signature: void mouseMoveEvent (QGraphicsSceneMouseEvent ptr event)

Description: Virtual method void QGraphicsScene::mouseMoveEvent(QGraphicsSceneMouseEvent *event)

This method can be reimplemented in a derived class.

mousePressEvent

Signature: void mousePressEvent (QGraphicsSceneMouseEvent ptr event)

Description: Virtual method void QGraphicsScene::mousePressEvent(QGraphicsSceneMouseEvent *event)

This method can be reimplemented in a derived class.

mouseReleaseEvent

Signature: void mouseReleaseEvent (QGraphicsSceneMouseEvent ptr event)

Description: Virtual method void QGraphicsScene::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)

This method can be reimplemented in a derived class.

new

(1) Signature: [static] new QGraphicsScene new (QObject ptr parent = nullptr)

Description: Constructor QGraphicsScene::QGraphicsScene(QObject *parent)

This method creates an object of class QGraphicsScene.

Python specific notes:
This method is the default initializer of the object.

(2) Signature: [static] new QGraphicsScene new (const QRectF sceneRect, QObject ptr parent = nullptr)

Description: Constructor QGraphicsScene::QGraphicsScene(const QRectF &sceneRect, QObject *parent)

This method creates an object of class QGraphicsScene.

Python specific notes:
This method is the default initializer of the object.

(3) Signature: [static] new QGraphicsScene new (double x, double y, double width, double height, QObject ptr parent = nullptr)

Description: Constructor QGraphicsScene::QGraphicsScene(double x, double y, double width, double height, QObject *parent)

This method creates an object of class QGraphicsScene.

Python specific notes:
This method is the default initializer of the object.

objectNameChanged

Signature: [signal] void objectNameChanged (string objectName)

Description: Signal declaration for QGraphicsScene::objectNameChanged(const QString &objectName)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'objectNameChanged'. This is the getter.
The object exposes a writable attribute 'objectNameChanged'. This is the setter.

palette

Signature: [const] QPalette palette

Description: Method QPalette QGraphicsScene::palette()

Python specific notes:
The object exposes a readable attribute 'palette'. This is the getter.

palette=

Signature: void palette= (const QPalette palette)

Description: Method void QGraphicsScene::setPalette(const QPalette &palette)

Python specific notes:
The object exposes a writable attribute 'palette'. This is the setter.

receivers

Signature: [const] int receivers (string signal)

Description: Method int QGraphicsScene::receivers(const char *signal)

This method is protected and can only be called from inside a derived class.

removeItem

Signature: void removeItem (QGraphicsItem ptr item)

Description: Method void QGraphicsScene::removeItem(QGraphicsItem *item)

render

Signature: void render (QPainter ptr painter, const QRectF target = QRectF(), const QRectF source = QRectF(), const Qt_AspectRatioMode aspectRatioMode = Qt::KeepAspectRatio)

Description: Method void QGraphicsScene::render(QPainter *painter, const QRectF &target, const QRectF &source, Qt::AspectRatioMode aspectRatioMode)

sceneRect

Signature: [const] QRectF sceneRect

Description: Method QRectF QGraphicsScene::sceneRect()

Python specific notes:
The object exposes a readable attribute 'sceneRect'. This is the getter.

sceneRect=

Signature: void sceneRect= (const QRectF rect)

Description: Method void QGraphicsScene::setSceneRect(const QRectF &rect)

Python specific notes:
The object exposes a writable attribute 'sceneRect'. This is the setter.

sceneRectChanged

Signature: [signal] void sceneRectChanged (const QRectF rect)

Description: Signal declaration for QGraphicsScene::sceneRectChanged(const QRectF &rect)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'sceneRectChanged'. This is the getter.
The object exposes a writable attribute 'sceneRectChanged'. This is the setter.

selectedItems

Signature: [const] QGraphicsItem ptr[] selectedItems

Description: Method QList<QGraphicsItem *> QGraphicsScene::selectedItems()

selectionArea

Signature: [const] QPainterPath selectionArea

Description: Method QPainterPath QGraphicsScene::selectionArea()

Python specific notes:
The object exposes a readable attribute 'selectionArea'. This is the getter.

selectionChanged

Signature: [signal] void selectionChanged

Description: Signal declaration for QGraphicsScene::selectionChanged()

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'selectionChanged'. This is the getter.
The object exposes a writable attribute 'selectionChanged'. This is the setter.

sendEvent

Signature: bool sendEvent (QGraphicsItem ptr item, QEvent ptr event)

Description: Method bool QGraphicsScene::sendEvent(QGraphicsItem *item, QEvent *event)

sender

Signature: [const] QObject ptr sender

Description: Method QObject *QGraphicsScene::sender()

This method is protected and can only be called from inside a derived class.

senderSignalIndex

Signature: [const] int senderSignalIndex

Description: Method int QGraphicsScene::senderSignalIndex()

This method is protected and can only be called from inside a derived class.

setActivePanel

Signature: void setActivePanel (QGraphicsItem ptr item)

Description: Method void QGraphicsScene::setActivePanel(QGraphicsItem *item)

Python specific notes:
The object exposes a writable attribute 'activePanel'. This is the setter.

setActiveWindow

Signature: void setActiveWindow (QGraphicsWidget ptr widget)

Description: Method void QGraphicsScene::setActiveWindow(QGraphicsWidget *widget)

Python specific notes:
The object exposes a writable attribute 'activeWindow'. This is the setter.

setBackgroundBrush

Signature: void setBackgroundBrush (const QBrush brush)

Description: Method void QGraphicsScene::setBackgroundBrush(const QBrush &brush)

Python specific notes:
The object exposes a writable attribute 'backgroundBrush'. This is the setter.

setBspTreeDepth

Signature: void setBspTreeDepth (int depth)

Description: Method void QGraphicsScene::setBspTreeDepth(int depth)

Python specific notes:
The object exposes a writable attribute 'bspTreeDepth'. This is the setter.

setFocus

Signature: void setFocus (const Qt_FocusReason focusReason = Qt::OtherFocusReason)

Description: Method void QGraphicsScene::setFocus(Qt::FocusReason focusReason)

setFocusItem

Signature: void setFocusItem (QGraphicsItem ptr item, const Qt_FocusReason focusReason = Qt::OtherFocusReason)

Description: Method void QGraphicsScene::setFocusItem(QGraphicsItem *item, Qt::FocusReason focusReason)

setFocusOnTouch

Signature: void setFocusOnTouch (bool enabled)

Description: Method void QGraphicsScene::setFocusOnTouch(bool enabled)

Python specific notes:
The object exposes a writable attribute 'focusOnTouch'. This is the setter.

setFont

Signature: void setFont (const QFont font)

Description: Method void QGraphicsScene::setFont(const QFont &font)

Python specific notes:
The object exposes a writable attribute 'font'. This is the setter.

setForegroundBrush

Signature: void setForegroundBrush (const QBrush brush)

Description: Method void QGraphicsScene::setForegroundBrush(const QBrush &brush)

Python specific notes:
The object exposes a writable attribute 'foregroundBrush'. This is the setter.

setItemIndexMethod

Signature: void setItemIndexMethod (const QGraphicsScene_ItemIndexMethod method)

Description: Method void QGraphicsScene::setItemIndexMethod(QGraphicsScene::ItemIndexMethod method)

Python specific notes:
The object exposes a writable attribute 'itemIndexMethod'. This is the setter.

setMinimumRenderSize

Signature: void setMinimumRenderSize (double minSize)

Description: Method void QGraphicsScene::setMinimumRenderSize(double minSize)

Python specific notes:
The object exposes a writable attribute 'minimumRenderSize'. This is the setter.

setPalette

Signature: void setPalette (const QPalette palette)

Description: Method void QGraphicsScene::setPalette(const QPalette &palette)

Python specific notes:
The object exposes a writable attribute 'palette'. This is the setter.

setSceneRect

(1) Signature: void setSceneRect (const QRectF rect)

Description: Method void QGraphicsScene::setSceneRect(const QRectF &rect)

Python specific notes:
The object exposes a writable attribute 'sceneRect'. This is the setter.

(2) Signature: void setSceneRect (double x, double y, double w, double h)

Description: Method void QGraphicsScene::setSceneRect(double x, double y, double w, double h)

setSelectionArea

(1) Signature: void setSelectionArea (const QPainterPath path, const QTransform deviceTransform)

Description: Method void QGraphicsScene::setSelectionArea(const QPainterPath &path, const QTransform &deviceTransform)

(2) Signature: void setSelectionArea (const QPainterPath path, const Qt_ItemSelectionMode mode = Qt::IntersectsItemShape, const QTransform deviceTransform = QTransform())

Description: Method void QGraphicsScene::setSelectionArea(const QPainterPath &path, Qt::ItemSelectionMode mode, const QTransform &deviceTransform)

(3) Signature: void setSelectionArea (const QPainterPath path, const Qt_ItemSelectionOperation selectionOperation, const Qt_ItemSelectionMode mode = Qt::IntersectsItemShape, const QTransform deviceTransform = QTransform())

Description: Method void QGraphicsScene::setSelectionArea(const QPainterPath &path, Qt::ItemSelectionOperation selectionOperation, Qt::ItemSelectionMode mode, const QTransform &deviceTransform)

setSortCacheEnabled

Signature: void setSortCacheEnabled (bool enabled)

Description: Method void QGraphicsScene::setSortCacheEnabled(bool enabled)

Python specific notes:
The object exposes a writable attribute 'sortCacheEnabled'. This is the setter.

setStickyFocus

Signature: void setStickyFocus (bool enabled)

Description: Method void QGraphicsScene::setStickyFocus(bool enabled)

Python specific notes:
The object exposes a writable attribute 'stickyFocus'. This is the setter.

setStyle

Signature: void setStyle (QStyle ptr style)

Description: Method void QGraphicsScene::setStyle(QStyle *style)

Python specific notes:
The object exposes a writable attribute 'style'. This is the setter.

sortCacheEnabled

Signature: [const] bool sortCacheEnabled

Description: Method bool QGraphicsScene::isSortCacheEnabled()

Python specific notes:
The object exposes a readable attribute 'sortCacheEnabled'. This is the getter.

sortCacheEnabled=

Signature: void sortCacheEnabled= (bool enabled)

Description: Method void QGraphicsScene::setSortCacheEnabled(bool enabled)

Python specific notes:
The object exposes a writable attribute 'sortCacheEnabled'. This is the setter.

staticMetaObject

Signature: [static] QMetaObject staticMetaObject

Description: Obtains the static MetaObject for this class.

stickyFocus

Signature: [const] bool stickyFocus

Description: Method bool QGraphicsScene::stickyFocus()

Python specific notes:
The object exposes a readable attribute 'stickyFocus'. This is the getter.

stickyFocus=

Signature: void stickyFocus= (bool enabled)

Description: Method void QGraphicsScene::setStickyFocus(bool enabled)

Python specific notes:
The object exposes a writable attribute 'stickyFocus'. This is the setter.

style

Signature: [const] QStyle ptr style

Description: Method QStyle *QGraphicsScene::style()

Python specific notes:
The object exposes a readable attribute 'style'. This is the getter.

style=

Signature: void style= (QStyle ptr style)

Description: Method void QGraphicsScene::setStyle(QStyle *style)

Python specific notes:
The object exposes a writable attribute 'style'. This is the setter.

timerEvent

Signature: void timerEvent (QTimerEvent ptr event)

Description: Virtual method void QGraphicsScene::timerEvent(QTimerEvent *event)

This method can be reimplemented in a derived class.

tr

Signature: [static] string tr (string s, string c = nullptr, int n = -1)

Description: Static method QString QGraphicsScene::tr(const char *s, const char *c, int n)

This method is static and can be called without an instance.

trUtf8

Signature: [static] string trUtf8 (string s, string c = nullptr, int n = -1)

Description: Static method QString QGraphicsScene::trUtf8(const char *s, const char *c, int n)

This method is static and can be called without an instance.

update

(1) Signature: void update (double x, double y, double w, double h)

Description: Method void QGraphicsScene::update(double x, double y, double w, double h)

(2) Signature: void update (const QRectF rect = QRectF())

Description: Method void QGraphicsScene::update(const QRectF &rect)

views

Signature: [const] QGraphicsView ptr[] views

Description: Method QList<QGraphicsView *> QGraphicsScene::views()

wheelEvent

Signature: void wheelEvent (QGraphicsSceneWheelEvent ptr event)

Description: Virtual method void QGraphicsScene::wheelEvent(QGraphicsSceneWheelEvent *event)

This method can be reimplemented in a derived class.

width

Signature: [const] double width

Description: Method double QGraphicsScene::width()