Doc: add hint about QMimeDatabase to QImageReader::canRead()

Task-number: QTBUG-63568
Change-Id: I5b700138487dbebfc8cbe70eb3a076efceafb361
Reviewed-by: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io>
This commit is contained in:
Eirik Aavitsland 2017-10-19 10:07:50 +02:00 committed by Liang Qi
parent 0261c22d41
commit 7c5475f1c0

View File

@ -1211,10 +1211,13 @@ float QImageReader::gamma() const
see if the image data is valid. read() may still return false
after canRead() returns \c true, if the image data is corrupt.
\note A QMimeDatabase lookup is normally a better approach than this
function for identifying potentially non-image files or data.
For images that support animation, canRead() returns \c false when
all frames have been read.
\sa read(), supportedImageFormats()
\sa read(), supportedImageFormats(), QMimeDatabase
*/
bool QImageReader::canRead() const
{