Hi there.
So my problem is this: I deploy my app (with those 4 dll's included in the release folder) and it works perfectly on my machine. When I run the executable on another system that doesn't have Qt installed it runs without a problem, with one important difference. When I try to open an image file it sees it as null and doesn't add it to my graphics view. This does not happen on my machine. Everything else works well.

The method for adding the image to the graphics view:
Qt Code:
  1. void MainWindow::makeImage(QImage image)
  2. {
  3. if (!fileName.isEmpty())
  4. {
  5. pictureScene->clear();
  6. if (image.isNull())//this is where the error occurs, even though I give the image a fileName
  7. {
  8. QMessageBox::information(this, tr("MainWindow"),
  9. tr("Cannot load %1.").arg(fileName));
  10. return;
  11. }
  12. pixmap->convertFromImage(image);
  13. picture = new QGraphicsPixmapItem(*pixmap);
  14. pictureScene->addItem(picture);
  15. }
  16. }
To copy to clipboard, switch view to plain text mode 

and the slot for opening the image:
Qt Code:
  1. void MainWindow::openImage()
  2. {
  3. fileName = QFileDialog::getOpenFileName(this,
  4. tr("Open Image File"), QDir::currentPath());
  5. QImage newImage(fileName);
  6. makeImage(newImage);
  7. }
To copy to clipboard, switch view to plain text mode 

So this works as it should on my computer, but for some reason it does not on others. Does anyone have any idea what am I doing wrong, cause I'm lost. Thanks in advance.