diff -r ef0373b55136 -r 758a864f9613 src/gui/image/qpixmap.cpp --- a/src/gui/image/qpixmap.cpp Fri Sep 17 08:34:18 2010 +0300 +++ b/src/gui/image/qpixmap.cpp Mon Oct 04 01:19:32 2010 +0300 @@ -830,15 +830,17 @@ return false; QFileInfo info(fileName); - if (!info.exists()) - return false; - QString key = QLatin1Literal("qt_pixmap") % info.absoluteFilePath() % HexString(info.lastModified().toTime_t()) % HexString(info.size()) % HexString(data ? data->pixelType() : QPixmapData::PixmapType); + // Note: If no extension is provided, we try to match the + // file against known plugin extensions + if (!info.completeSuffix().isEmpty() && !info.exists()) + return false; + if (QPixmapCache::find(key, *this)) return true;