Home · Overviews · Examples 

QGraphicsEllipseItem Class Reference
[com.trolltech.qt.gui module]

The QGraphicsEllipseItem class provides an ellipse item that you can add to a QGraphicsScene. More...

Inherits QAbstractGraphicsShapeItem.


Detailed Description

The QGraphicsEllipseItem class provides an ellipse item that you can add to a QGraphicsScene.

QGraphicsEllipseItem respresents an ellipse with a fill and an outline, and you can also use it for ellipse segments (see startAngle, spanAngle).

To set the item's ellipse, pass a QRectF to QGraphicsEllipseItem's constructor, or call setRect. The rect function returns the current ellipse geometry.

QGraphicsEllipseItem uses the rect and the pen width to provide a reasonable implementation of boundingRect, shape, and contains. The paint function draws the ellipse using the item's associated pen and brush, which you can set by calling setPen and setBrush.

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


Copyright © 2008 Trolltech Trademarks
Qt Jambi 4.3.5_01