[Solved] QColor::setNamedColor: Unknown color name 'inherit' Error
-
Dear all,
When I use QImage like that, I got that error from debug console.
Error
@QColor::setNamedColor: Unknown color name 'inherit'@Code
@const QUrl &name;
QImage(name.toLocalFile());@Is this Qt bug? or something need QImage Plugins. I already have all plugins. Image format is *.png.
Thanks
-
You will have to provide an useful code snippet. The one you posted isn't (it isn't even valid C++).
-
@QVariant TextBrowser::loadResource(int type, const QUrl &name)
{
if (type == QTextDocument::ImageResource){
return QImage(name.toLocalFile());
}
return QTextBrowser::loadResource(type,name);
}@QTextBrowser loadResource implementation
Thanks
-
Hi,
this should be fixed in 4.8 accordingly to https://bugreports.qt.nokia.com/browse/QTBUG-19098