Q3CanvasPolygon Class ReferenceThe Q3CanvasPolygon class provides a polygon on a Q3Canvas. More... #include <Q3CanvasPolygon> This class is part of the Qt 3 support library. It is provided to keep old source code working. We strongly advise against using it in new code. See Porting to Qt 4 for more information. Inherits: Q3CanvasPolygonalItem. Inherited by: Q3CanvasSpline. Public Functions
Reimplemented Public Functions
Reimplemented Protected Functions
Detailed DescriptionThe Q3CanvasPolygon class provides a polygon on a Q3Canvas. 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 Q3CanvasItem::move() and Q3CanvasItem::moveBy(), or by setting coordinates with Q3CanvasItem::setX(), Q3CanvasItem::setY() and Q3CanvasItem::setZ(). Note: Q3CanvasPolygon does not use the pen. See also QtCanvas and Porting to Graphics View. Member Function Documentation
|