QGraphicsObjectclass provides a base class for all graphics items that require signals, slots and properties. 更多 …
继承者: QtCharts.QChart , QtCharts.QLegend , QtCharts.QPolarChart , QGraphicsVideoItem , QGraphicsSvgItem , QGraphicsProxyWidget , QGraphicsTextItem , QGraphicsWidget
4.6 版新增。
def
grabGesture
(type[, flags=Qt.GestureFlags()])
def
ungrabGesture
(type)
def
childrenChanged
()
def
enabledChanged
()
def
heightChanged
()
def
opacityChanged
()
def
parentChanged
()
def
rotationChanged
()
def
scaleChanged
()
def
visibleChanged
()
def
widthChanged
()
def
xChanged
()
def
yChanged
()
def
zChanged
()
类扩展
QGraphicsItemwithQObject‘s signal/slot and property mechanisms. It maps many ofQGraphicsItem‘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
QGraphicsObjectinherits from bothQObjectandQGraphicsItem, you should use the functions provided byQGraphicsItem, notQObject, to manage the relationships between parent and child items.The relationships between items can be explored using the
parentItem()andchildItems()functions. In the hierarchy of items in a scene, theparentObject()andparentWidget()functions are the equivalent of theparent()andparentWidget()函数为QWidget子类。另请参阅
QGraphicsObject
(
[
parent=None
]
)
¶
- param parent
构造
QGraphicsObject
with
parent
.
PySide2.QtWidgets.QGraphicsObject.
childrenChanged
(
)
¶
PySide2.QtWidgets.QGraphicsObject.
enabledChanged
(
)
¶
PySide2.QtWidgets.QGraphicsObject.
grabGesture
(
type
[
,
flags=Qt.GestureFlags()
]
)
¶
type
–
GestureType
flags
–
GestureFlags
Subscribes the graphics object to the given
gesture
采有特定
flags
.
PySide2.QtWidgets.QGraphicsObject.
heightChanged
(
)
¶
PySide2.QtWidgets.QGraphicsObject.
opacityChanged
(
)
¶
PySide2.QtWidgets.QGraphicsObject.
parentChanged
(
)
¶
PySide2.QtWidgets.QGraphicsObject.
rotationChanged
(
)
¶
PySide2.QtWidgets.QGraphicsObject.
scaleChanged
(
)
¶
PySide2.QtWidgets.QGraphicsObject.
ungrabGesture
(
type
)
¶
type
–
GestureType
Unsubscribes the graphics object from the given
gesture
.
PySide2.QtWidgets.QGraphicsObject.
visibleChanged
(
)
¶
PySide2.QtWidgets.QGraphicsObject.
widthChanged
(
)
¶
PySide2.QtWidgets.QGraphicsObject.
xChanged
(
)
¶
PySide2.QtWidgets.QGraphicsObject.
yChanged
(
)
¶
PySide2.QtWidgets.QGraphicsObject.
zChanged
(
)
¶