Qwt: Unable to draw the label from qwtplotmarker?
Sir, this is my code:-
in .h file
Code:
public:
QImage pixx
(":/Images/AlarmEvent.png");
painter->drawImage(r,pixx);
}
};
in .cpp file
Code:
Marker *mark;
mark=new Marker;
mark->setValue(xData_1.at(0),yData_1.at(0));//this is where i want to place the marker.
mark->attach(plot);
Sir, it is not showing any label on the marker. Why is this happening? Is something wrong in the code? Please Guide Me.
Re: Qwt: Unable to draw the label from qwtplotmarker?
This is wrong as i am creating an object of the QPainter. Sorry but now it is solved.