Hi all...
Can anybody help me knowing why i am not able see any image on the window for the following code
#include<qapplication.h>
#include<qframe.h>
#include<qimage.h>
#include<qpainter.h>
main(int argc, char *argv[])
{
QApplication app(argc,argv);
QFrame frame;
QPainter painter(&frame);
QImage image("test.png");
painter.drawImage(0,0,image);
frame.show();
return app.exec();
}
Regards,
Mahe2310
Bookmarks