Reputation: 163
I'm trying to put image to my form using QPixmap and QLabel. But i cant load image to QPixmap. Here is what i have:
qDebug() << QFile("C:/img.png").exists(); - true
qDebug() << map.load("C:/img.png"); - false
I have this file but still cant load it. I use Qt 4.8 with static linking.
Upvotes: 0
Views: 237
Reputation: 6444
The issue could possibly be with the particular file you're trying to load.
Try loading another file and see if you have the same problem.
Upvotes: 1