Home | All Classes | Main Classes | Annotated | Grouped Classes | Functions | ![]() |
The QCanvasLine class provides a line on a QCanvas. More...
#include <QCanvasLine>
This class is part of the Qt 3 compatibility library. It is provided to keep old source code working. We strongly advise against using it in new code.
Inherits QCanvasPolygonalItem.
The QCanvasLine class provides a line on a QCanvas.
The line inherits functionality from QCanvasPolygonalItem, for example the setPen() function. The start and end points of the line are set with setPoints().
Like any other canvas item lines can be moved with QCanvasItem::move() and QCanvasItem::moveBy(), or by setting coordinates with QCanvasItem::setX(), QCanvasItem::setY() and QCanvasItem::setZ().
Constructs a line from (0,0) to (0,0) on canvas.
See also setPoints() and ..
Destroys the line.
Returns the end point of the line.
See also setPoints() and startPoint().
Returns 7 (QCanvasItem::Rtti_Line).
Reimplemented from QCanvasItem.
See also QCanvasItem::rtti().
Sets the line's start point to (xa, ya) and its end point to (xb, yb).
Returns the start point of the line.
See also setPoints() and endPoint().
Copyright © 2004 Trolltech. | Trademarks | Qt 4.0.0-tp2 |