QAbstractGraphicsShapeItem Class

The QAbstractGraphicsShapeItem class provides a common base for all path items. More...

Header: #include <QAbstractGraphicsShapeItem>
qmake: QT += widgets
Since: Qt 4.2
Inherits: QGraphicsItem
Inherited By:

QGraphicsEllipseItem, QGraphicsPathItem, QGraphicsPolygonItem, QGraphicsRectItem, and QGraphicsSimpleTextItem

This class was introduced in Qt 4.2.

Detailed Description

This class does not fully implement an item by itself; in particular, it does not implement boundingRect() and paint(), which are inherited by QGraphicsItem.

You can subclass this item to provide a simple base implementation of accessors for the item's pen and brush.

See also QGraphicsRectItem, QGraphicsEllipseItem, QGraphicsPathItem, QGraphicsPolygonItem, QGraphicsTextItem, QGraphicsLineItem, QGraphicsPixmapItem, and Graphics View Framework.