Placing same image at different places in QT -
i want display same image @ different position. image should display @ position. using qpixmap placing image. can 1 suggest how it?.
you can use qlabel
this:
qlist<qpoint> points = qlist<qpoint>() << qpoint(0, 0) << qpoint(100, 100) << qpoint(200, 200); qpixmap pixmap; (int = 0; < points.size(); ++i) { qlabel* label = new qlabel; label->setpixmap(pixmap); label->setgeometry(qrect(points[i], pixmap.size())); label->show(); }
Comments
Post a Comment