Hi...

draw() methos uses QPainter object but i have to create the line on the canvas...

I went thru the document of QCanvasLine and also the example canvas example on it...

It also does not use the draw() method..

Also i created a simple independent application wherein i just create a canvas and draw a line and it is being created.. its just here where its causing the problem and am not able to make it out why....

Thanks..

Kapil