PDA

View Full Version : Line drawing



kiranraj
29th January 2007, 07:25
Hi,

Is it possible to draw a line with different colors?
If so, could u guys help me in knowing that.

Thanx.

jpn
29th January 2007, 07:38
Is it possible to draw a line with different colors?

Hi, sure there is, for example:


QPainter painter(...);
painter.setPen(Qt::red);
painter.drawLine(...);