|
|
Home | All Classes | Main Classes | Annotated | Grouped Classes | Functions |
The QCanvasPolygon class provides a polygon on a QCanvas. More...
#include <qcanvas.h>
Inherits QCanvasPolygonalItem.
Inherited by QCanvasSpline.
Paints a polygon with a QBrush. The polygon's points can be set in the constructor or set or changed later using setPoints(). Use points() to retrieve the points, or areaPoints() to retrieve the points relative to the canvas's origin.
The polygon can be drawn on a painter with drawShape().
Like any other canvas item polygons can be moved with QCanvasItem::move() and QCanvasItem::moveBy(), or by setting coordinates with QCanvasItem::setX(), QCanvasItem::setY() and QCanvasItem::setZ().
Note: QCanvasPolygon does not use the pen.
See also Graphics Classes and Image Processing Classes.
See also setPoints() and points().
Reimplemented from QCanvasPolygonalItem.
Note that QCanvasPolygon does not support an outline (the pen is always NoPen).
Reimplemented from QCanvasPolygonalItem.
Returns the vertices of the polygon, not translated by the position.
See also setPoints() and areaPoints().
See also QCanvasItem::rtti().
Reimplemented from QCanvasPolygonalItem.
Reimplemented in QCanvasSpline.
This file is part of the Qt toolkit. Copyright © 1995-2007 Trolltech. All Rights Reserved.
Copyright © 2007 Trolltech | Trademarks | Qt 3.3.8
|