QAbstractGraphicsShapeItem¶
The
QAbstractGraphicsShapeItem
class provides a common base for all path items. More…
Inherited by: QGraphicsEllipseItem, QGraphicsPathItem, QGraphicsPolygonItem, QGraphicsRectItem, QGraphicsSimpleTextItem
Detailed Description¶
This class does not fully implement an item by itself; in particular, it does not implement
boundingRect()
andpaint()
, which are inherited byQGraphicsItem
.You can subclass this item to provide a simple base implementation of accessors for the item’s pen and brush.
-
class
QAbstractGraphicsShapeItem
([parent=None])¶ - param parent
Constructs a
QAbstractGraphicsShapeItem
.parent
is passed toQGraphicsItem
‘s constructor.
-
PySide2.QtWidgets.QAbstractGraphicsShapeItem.
brush
()¶ - Return type
QBrush
Returns the item’s brush, or an empty brush if no brush has been set.
See also
-
PySide2.QtWidgets.QAbstractGraphicsShapeItem.
pen
()¶ - Return type
QPen
Returns the item’s pen. If no pen has been set, this function returns QPen(), a default black solid line pen with 1 width.
See also
© 2018 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.