I m using Qt 4.6.2 on windows xp

I need to draw horizontal ,vertical lines and an arc over the image .


My code is
Qt Code:
  1. #include <QtGui>
  2.  
  3. QPixmap pixmap;
  4. QPainter painter;
  5. QPen DarkGray((QColor::QColor(69,86,96)),1);
  6.  
  7. pixmap.load(QString::fromUtf8(":/BiFold/Images/Plane.PNG"));
  8. painter.begin(&pixmap);
  9. painter.setPen(DarkGray);
  10. painter.drawLine(250,300,500,300);
  11. painter.end();
  12. ui->lbl_plane->setGeometry(QRect(100,150,611,301));
  13. ui->lbl_plane->setPixmap(pixmap);
To copy to clipboard, switch view to plain text mode 

But only image is displayed ,no line is drawn....