Skip to content

Commit

Permalink
Doc: add hint about QMimeDatabase to QImageReader::canRead()
Browse files Browse the repository at this point in the history
Task-number: QTBUG-63568
Change-Id: I5b700138487dbebfc8cbe70eb3a076efceafb361
Reviewed-by: Venugopal Shivashankar <[email protected]>
  • Loading branch information
aavit authored and liangqi committed Oct 24, 2017
1 parent 0261c22 commit 7c5475f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/gui/image/qimagereader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit 7c5475f

Please sign in to comment.