This class was introduced in Qt 4.6
The PySide.QtGui.QGraphicsObject class provides a base class for all graphics items that require signals, slots and properties.
The class extends a PySide.QtGui.QGraphicsItem with PySide.QtCore.QObject ‘s signal/slot and property mechanisms. It maps many of PySide.QtGui.QGraphicsItem ‘s basic setters and getters to properties and adds notification signals for many of them.
Each graphics object can be constructed with a parent item. This ensures that the item will be destroyed when its parent item is destroyed. Although PySide.QtGui.QGraphicsObject inherits from both PySide.QtCore.QObject and PySide.QtGui.QGraphicsItem , you should use the functions provided by PySide.QtGui.QGraphicsItem , notPySide.QtCore.QObject , to manage the relationships between parent and child items.
The relationships between items can be explored using the PySide.QtGui.QGraphicsItem.parentItem() and PySide.QtGui.QGraphicsItem.childItems() functions. In the hierarchy of items in a scene, the PySide.QtGui.QGraphicsItem.parentObject() and PySide.QtGui.QGraphicsItem.parentWidget() functions are the equivalent of the QWidget.parent() and QWidget.parentWidget() functions for PySide.QtGui.QWidget subclasses.
|Parameters:||parent – PySide.QtGui.QGraphicsItem|
Constructs a PySide.QtGui.QGraphicsObject with parent .
|Parameters:||type – PySide.QtCore.Qt.GestureType|