I've taken the decision to track step-by-step what happens in Qt run-time in this context. So, I've linked my executable against Debug Qt libraries.
And I 've discovered the following :
{
if (!image) {
qWarning("QImageReader::read: cannot read into null pointer");
return false;
}
if (!d->handler && !d->initHandler())
return false;
bool QImageReader::read(QImage *image)
{
if (!image) {
qWarning("QImageReader::read: cannot read into null pointer");
return false;
}
if (!d->handler && !d->initHandler())
return false;
To copy to clipboard, switch view to plain text mode
(d is QImageReaderPrivate* and d->handler is QImageIOHandler*)
d->handler being NULL pointer,
hence, this method returns false and so on until returning to my own code line :
stateIndicator
->setPixmap
(QPixmap(QString::fromUtf8(":/icons/green-off.png")));
stateIndicator->setPixmap(QPixmap(QString::fromUtf8(":/icons/green-off.png")));
To copy to clipboard, switch view to plain text mode
Seems not to be a plugin problem since support of png format is native.
So, what's the problem ? (Hehe, cause you're a noob ! )
Thank for your answer.
Bookmarks