Hi there i'm trying to use the drawLine method from QPainter to draw a line on my my label..but i dont see anything being drawn!
Here is my code fragment!
pmVideo is the QLabel,
void IdentifyMarkersForm::drawPiesSlot()
{
QPainter *painter=new QPainter(pmVideo);
QColor col("yellow");
QString tempString;
painter->setPen(col);
double pWidth=pmVideo->pixmap()->width();
double pHeight=pmVideo->pixmap()->height();
int i=0;
while(tempMarkerList.Marker_ID!=-1){
tempString.setNum(tempMarkerList[i].Marker_ID);
painter->drawText(tempMarkerList[i].x,tempMarkerList[i].y,tempString);
painter->drawPie(tempMarkerList[i].x,tempMarkerList[i].y,30,30,10,5760);
painter->drawLine(23,30,100,100);
i++;
}
}
Thanking you all in advance.
Regards