I wanted to know if there was a way to determine if a QImage is valid. I am displaying that image as a pixmap in QLabel and sometimes when the image is not valid. It is not displayed in the QLabel, then.
The reason for not being valid sometimes is that the image is loaded from external data and that data can be corrupted at times.
Thereby, I wished to know if it is possible to actually determine whether a QImage is valid.