QAbstractGraphicsShapeItem Class ReferenceThe QAbstractGraphicsShapeItem class provides a common base for all path items. Далее... #include <QAbstractGraphicsShapeItem> Унаследован от: QGraphicsItem. Inherited by: QGraphicsEllipseItem, QGraphicsPathItem, QGraphicsPolygonItem, QGraphicsRectItem, and QGraphicsSimpleTextItem. Класс был добавлен в Qt 4.2. Открытые функции
Переопределённые открытые функции
Дополнительные унаследованные члены
Подробное описаниеThe 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 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. Описание функций-членовQAbstractGraphicsShapeItem::QAbstractGraphicsShapeItem ( QGraphicsItem * parent = 0 )Constructs a QAbstractGraphicsShapeItem. parent передаётся в конструктор QGraphicsItem. QAbstractGraphicsShapeItem::~QAbstractGraphicsShapeItem ()Destroys a QAbstractGraphicsShapeItem. QBrush QAbstractGraphicsShapeItem::brush () constReturns the item's brush, or an empty brush if no brush has been set. Смотрите также setBrush(). bool QAbstractGraphicsShapeItem::isObscuredBy ( const QGraphicsItem * item ) const [virtual]Переопределено из QGraphicsItem::isObscuredBy(). QPainterPath QAbstractGraphicsShapeItem::opaqueArea () const [virtual]Переопределено из QGraphicsItem::opaqueArea(). QPen QAbstractGraphicsShapeItem::pen () constReturns the item's pen. If no pen has been set, this function returns QPen(), a default black solid line pen with 0 width. Смотрите также setPen(). void QAbstractGraphicsShapeItem::setBrush ( const QBrush & brush )Sets the item's brush to brush. The item's brush is used to fill the item. If you use a brush with a QGradient, the gradient is relative to the item's coordinate system. See also brush(). void QAbstractGraphicsShapeItem::setPen ( const QPen & pen )Sets the pen for this item to pen. The pen is used to draw the item's outline. Смотрите также pen(). |
Попытка перевода Qt документации. Если есть желание присоединиться, или если есть замечания или пожелания, то заходите на форум: Перевод Qt документации на русский язык... Люди внесшие вклад в перевод: Команда переводчиков |