![]() |
| ||
Classes - Annotated - Tree - Functions - Home - Structure |
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().
See also setPoints() and points().
Reimplemented from QCanvasPolygonalItem.
Note that QCanvasPolygon does not support an outline (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.
Search the documentation, FAQ, qt-interest archive and more (uses
www.trolltech.com):
This file is part of the Qt toolkit, copyright © 1995-2001 Trolltech, all rights reserved.
Copyright © 2001 Trolltech | Trademarks | Qt version 3.0.0-beta2
|