1QCanvasLine(3qt) QCanvasLine(3qt)
2
3
4
6 QCanvasLine - Line on a QCanvas
7
9 #include <qcanvas.h>
10
11 Inherits QCanvasPolygonalItem.
12
13 Public Members
14 QCanvasLine ( QCanvas * canvas )
15 ~QCanvasLine ()
16 void setPoints ( int xa, int ya, int xb, int yb )
17 QPoint startPoint () const
18 QPoint endPoint () const
19 virtual int rtti () const
20
22 The QCanvasLine class provides a line on a QCanvas.
23
24 The line inherits functionality from QCanvasPolygonalItem, for example
25 the setPen() function. The start and end points of the line are set
26 with setPoints().
27
28 Like any other canvas item lines can be moved with QCanvasItem::move()
29 and QCanvasItem::moveBy(), or by setting coordinates with
30 QCanvasItem::setX(), QCanvasItem::setY() and QCanvasItem::setZ().
31
32 See also Graphics Classes and Image Processing Classes.
33
36 Constructs a line from (0,0) to (0,0) on canvas.
37
38 See also setPoints().
39
41 Destroys the line.
42
44 Returns the end point of the line.
45
46 See also setPoints() and startPoint().
47
49 Returns 7 (QCanvasItem::Rtti_Line).
50
51 See also QCanvasItem::rtti().
52
53 Reimplemented from QCanvasPolygonalItem.
54
56 Sets the line's start point to (xa, ya) and its end point to (xb, yb).
57
58 Example: canvas/canvas.cpp.
59
61 Returns the start point of the line.
62
63 See also setPoints() and endPoint().
64
65
67 http://doc.trolltech.com/qcanvasline.html
68 http://www.trolltech.com/faq/tech.html
69
71 Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the
72 license file included in the distribution for a complete license
73 statement.
74
76 Generated automatically from the source code.
77
79 If you find a bug in Qt, please report it as described in
80 http://doc.trolltech.com/bughowto.html. Good bug reports help us to
81 help you. Thank you.
82
83 The definitive Qt documentation is provided in HTML format; it is
84 located at $QTDIR/doc/html and can be read using Qt Assistant or with a
85 web browser. This man page is provided as a convenience for those users
86 who prefer man pages, although this format is not officially supported
87 by Trolltech.
88
89 If you find errors in this manual page, please report them to qt-
90 bugs@trolltech.com. Please include the name of the manual page
91 (qcanvasline.3qt) and the Qt version (3.3.8).
92
93
94
95Trolltech AS 2 February 2007 QCanvasLine(3qt)