This piece of code works correctly on my development computer, but not on a test one:
QImage img("Y:/SharedImages/img.jpg");
cout << "TEST image size: " << img.size().width() << " x " << img.size().height()
<< " Null? " << img.isNull() << endl;
The image is on a shared drive, so it is exactly the same one.
The image path is the same on both computers. I can open it with other tools with that path on the test PC.
On the test computer I get an invalid image (isNull() = true), while on the development one it is a proper image.
I cannot find the reason of this behaviour...
Platform:
- Windows 7
- MinGW/GCC 4.6.2
- Qt 4.8.4
- QtCreator 2.7.0