Sir, this is my code:-
in .h file
Qt Code:
  1. class Marker:public QwtPlotMarker{
  2.  
  3.  
  4. public:
  5. virtual void drawLabel(QPainter *painter, const QRectF &, const QPointF &pt) const{
  6. painter=new QPainter;
  7. QImage pixx(":/Images/AlarmEvent.png");
  8. QRectF r(1,1,10,10);
  9. painter->drawImage(r,pixx);
  10. }
  11. };
To copy to clipboard, switch view to plain text mode 

in .cpp file

Qt Code:
  1. Marker *mark;
  2. mark=new Marker;
  3. mark->setValue(xData_1.at(0),yData_1.at(0));//this is where i want to place the marker.
  4. mark->attach(plot);
To copy to clipboard, switch view to plain text mode 

Sir, it is not showing any label on the marker. Why is this happening? Is something wrong in the code? Please Guide Me.