Dmitriy Baranov
Dmitriy Baranov

Reputation: 163

QPixmap load doesnt work

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

Answers (1)

Steve
Steve

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

Related Questions