QT绘图求指导
用QLabel显示了一张图片,但是需要在这张图片上画个圆圈,不知道该怎么解决,望大神指点!!
未成功的解决方法
img = new QPixmap("C:\\Users\\Public\\Pictures\\Sample Pictures\\321.jpg");
label->setPixmap(*img);
QPixmap temp = img->copy();
QPainter p(&temp);
p.setRenderHint(QPainter::Antialiasing);
p.setPen(QPen(Qt::black, 12, Qt::DashDotLine, Qt::RoundCap));
p.setBrush(QBrush(Qt::SolidPattern));
p.drawEllipse(50, 40, 400, 300);
label->setPixmap(temp);