Qt logo

QCanvasLine Class Reference


A lines on a canvas. More...

#include <qcanvas.h>

Inherits QCanvasPolygonalItem.

List of all member functions.

Public Members

Protected Members


Detailed Description

A lines on a canvas.

Currently, only width==1 lines are supported.


Member Function Documentation

QCanvasLine::QCanvasLine ( QCanvas * canvas )

Constructs a line from (0,0) to (0,0) on canvas.

See also: setPoints().

QCanvasLine::~QCanvasLine ()

Destroys the line, removing it from its canvas.

QPointArray QCanvasLine::areaPoints () const [virtual protected]

Reimplemented for internal reasons; the API is not affected.

Reimplemented from QCanvasPolygonalItem.

void QCanvasLine::drawShape ( QPainter & p ) [virtual protected]

Reimplemented for internal reasons; the API is not affected.

Reimplemented from QCanvasPolygonalItem.

int QCanvasLine::rtti () const [virtual]

Returns 7.

See also: QCanvasItem::rtti().

Reimplemented from QCanvasItem.

void QCanvasLine::setPen ( QPen p ) [virtual]

Reimplemented for internal reasons; the API is not affected.

Reimplemented from QCanvasPolygonalItem.

void QCanvasLine::setPoints ( int x1, int y1, int x2, int y2 )

Sets the ends of the line to (x1,\a y1) and (x2,\a y2).


Search the documentation, FAQ, qt-interest archive and more (uses www.troll.no):


This file is part of the Qt toolkit, copyright © 1995-2000 Troll Tech, all rights reserved.


Copyright © 2000 Troll TechTrademarks
Qt version 2.1.0 (pre-release)