Home · All Classes · Modules |
The QGraphicsPathItem class provides a path item that you can add to a QGraphicsScene. More...
Inherits QAbstractGraphicsShapeItem.
The QGraphicsPathItem class provides a path item that you can add to a QGraphicsScene.
To set the item's path, pass a QPainterPath to QGraphicsPathItem's constructor, or call the setPath() function. The path() function returns the current path.
QGraphicsPathItem uses the path to provide a reasonable implementation of boundingRect(), shape(), and contains(). The paint() function draws the path using the item's associated pen and brush, which you can set by calling the setPen() and setBrush() functions.
The parent argument, if not None, causes self to be owned by Qt instead of PyQt.
The scene argument, if not None, causes self to be owned by Qt instead of PyQt.
Constructs a QGraphicsPath. parent is passed to QAbstractGraphicsShapeItem's constructor.
See also QGraphicsScene.addItem().
The parent argument, if not None, causes self to be owned by Qt instead of PyQt.
The scene argument, if not None, causes self to be owned by Qt instead of PyQt.
Constructs a QGraphicsPath item using path as the default path. parent is passed to QAbstractGraphicsShapeItem's constructor.
See also QGraphicsScene.addItem().
Reimplemented from QGraphicsItem.boundingRect().
Reimplemented from QGraphicsItem.contains().
Reimplemented from QGraphicsItem.isObscuredBy().
Reimplemented from QGraphicsItem.opaqueArea().
Reimplemented from QGraphicsItem.paint().
Sets the item's path to be the given path.
See also path().
Reimplemented from QGraphicsItem.shape().
Reimplemented from QGraphicsItem.type().
PyQt 4.9.4 for Windows | Copyright © Riverbank Computing Ltd and Nokia 2012 | Qt 4.8.2 |