Logo Search packages:      
Sourcecode: qt4-x11 version File versions

bool QImageIOHandler::canRead (  )  const [pure virtual]

Returns true if an image can be read from the device (i.e., the image format is supported, the device can be read from and the initial header information suggests that the image can be read); otherwise returns false.

When reimplementing canRead(), make sure that the I/O device (device()) is left in its original state (e.g., by using peek() rather than read()).

See also:
read(), QIODevice::peek()

Referenced by imageCount(), and QImageReader::imageFormat().


Generated by  Doxygen 1.6.0   Back to index