Hi there!
This my first time on this forum.
I'm creating an application for an exam and I need to display a JPEG image in the application.
Here is the code:

Qt Code:
  1. #include <QApplication>
  2. #include <QImageReader>
  3. #include <QWidget>
  4.  
  5. class MyWidget : public QWidget
  6. {
  7. public:
  8. MyWidget(QWidget *parent = 0);
  9. QImageReader *lettore;
  10. };
  11.  
  12. MyWidget::MyWidget(QWidget *parent)
  13. : QWidget(parent)
  14. {
  15. lettore=new QImageReader("k8055.jpg");
  16. }
  17.  
  18. int main(int argc, char *argv[])
  19. {
  20. QApplication app(argc, argv);
  21. MyWidget widget;
  22. widget.show();
  23. return app.exec();
  24. }
To copy to clipboard, switch view to plain text mode 

I'm using QT 4.2.3 Open Source with Visual Studio 2005.
When I run the application I see a blank dialog with the same image size. Where is the mistake? Can you help me?

PS. Sorry for bad english but I am Italian