Hi...

I am trying to create a line on canvas but it is not being displayed.. i dont understand why it is not getting created... i had created applications using the same idea and they were being created... here it is not the case.. Am i missing something...

Qt Code:
  1. void ImageDraw::drawLine(QPoint point1, QPoint point2)
  2. {
  3. int xxPoint,xyPoint,yxPoint,yyPoint;
  4. m_pCanvasLine = new Q3CanvasLine(m_pCanvas);
  5. xxPoint = point1.x();
  6. xyPoint = point1.y();
  7. yxPoint = point2.x();
  8. yyPoint = point2.y();
  9. m_pCanvasLine->setPoints(xxPoint,xyPoint,yxPoint,yyPoint);
  10. m_pCanvasLine->show();
  11. resizeContents(400,400);
  12. }
To copy to clipboard, switch view to plain text mode 

here m_pCanvas is a Canvas Object...

Thank you

Kapil