bool QIODevice::isReadable () const
Returns true if data can be read from the device; otherwise returns false. Use bytesAvailable() to determine how many bytes can be read.
This is a convenience function which checks if the OpenMode of the device contains the ReadOnly flag.