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:
parent
0261c22d41
commit
7c5475f1c0
@ -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
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user