I'm having the following problem. I build an application on solaris 10 machine add a few images to the GUI and it works fine on the machine I build it on.

When I move my application to a different solaris 10 machine it runs but no images are displayed and I get the following error:

Qt Code:
  1. QPixmap::convertFromImage: Cannot convert a null image
To copy to clipboard, switch view to plain text mode 

The sample code of one of the images is the following :

Qt Code:
  1. QImage logo(":/images/logo.jpg");
  2.  
  3. QLabel *imageLabel = new QLabel;
  4.  
  5. imageLabel->setBackgroundRole(QPalette::Base);
  6. imageLabel->setSizePolicy(QSizePolicy::Ignored, QSizePolicy::Ignored);
  7. imageLabel->setScaledContents(false);
  8. imageLabel->setPixmap(QPixmap::fromImage(logo));
  9. imageLabel->resize(190,78);
To copy to clipboard, switch view to plain text mode 

Any help is appreciated. Thanks in advanced.