+ 1

Image display in C++

Does anyone know how to display and image in C++? I found this is there another way int main(int argc, char *argv[]) { QApplication a(argc, argv); QGraphicsScene scene; QGraphicsView view(&scene); QGraphicsPixmapItem item(QPixmap("c:\\test.png")); scene.addItem(&item); view.show(); return a.exec(); }

15th Dec 2017, 4:17 PM
4D4F524E47535049444552
4D4F524E47535049444552 - avatar
3 Respuestas
+ 3
Maybe this will help: https://youtu.be/WFts4-62F6U
26th Dec 2017, 12:00 PM
David Wesley
David Wesley - avatar
+ 1
Yes that helped thank you
26th Dec 2017, 4:14 PM
4D4F524E47535049444552
4D4F524E47535049444552 - avatar