Inherited by: QGraphicsSimpleTextItem, QGraphicsPolygonItem, QGraphicsEllipseItem, QGraphicsRectItem, QGraphicsPathItem
The PySide.QtGui.QAbstractGraphicsShapeItem class provides a common base for all path items.
This class does not fully implement an item by itself; in particular, it does not implement PySide.QtGui.QGraphicsItem.boundingRect() and PySide.QtGui.QGraphicsItem.paint() , which are inherited by PySide.QtGui.QGraphicsItem .
You can subclass this item to provide a simple base implementation of accessors for the item’s pen and brush.
Parameters: |
|
---|
Return type: | PySide.QtGui.QBrush |
---|
Returns the item’s brush, or an empty brush if no brush has been set.
Return type: | PySide.QtGui.QPen |
---|
Returns the item’s pen. If no pen has been set, this function returns QPen(), a default black solid line pen with 0 width.
Parameters: | brush – PySide.QtGui.QBrush |
---|
Sets the item’s brush to brush .
The item’s brush is used to fill the item.
If you use a brush with a PySide.QtGui.QGradient , the gradient is relative to the item’s coordinate system.
Parameters: | pen – PySide.QtGui.QPen |
---|
Sets the pen for this item to pen .
The pen is used to draw the item’s outline.