Compatibility Members for QIODevice

The following members of class QIODeviceare part of the Qt compatibility layer. We advise against using them in new code.

Public Types

typedef Offset
typedef Status

Public Functions

Offset at() const
bool at(Offset offset)
int flags() const
int getch()
bool isAsynchronous() const
bool isBuffered() const
bool isCombinedAccess() const
bool isDirectAccess() const
bool isInactive() const
bool isRaw() const
bool isSequentialAccess() const
bool isSynchronous() const
bool isTranslated() const
int mode() const
int putch(int ch)
qint64 readBlock(char * data, quint64 size)
void resetStatus()
int state() const
Status status() const
int ungetch(int ch)
qint64 writeBlock(const char * data, quint64 size)
qint64 writeBlock(const QByteArray & data)
  • 8 public functions inherited from QObject

Member Type Documentation

typedef QIODevice::Offset

Use qint64 instead.

typedef QIODevice::Status

Use QIODevice::OpenMode instead, or see the documentation for specific devices.

Member Function Documentation

Offset QIODevice::at() const

Use pos() instead.

bool QIODevice::at(Offset offset)

Use seek(offset) instead.

int QIODevice::flags() const

Use openMode() instead.

int QIODevice::getch()

Use getChar() instead.

bool QIODevice::isAsynchronous() const

This functionality is no longer available. This function always returns true.

bool QIODevice::isBuffered() const

Use !(openMode() & QIODevice::Unbuffered) instead.

bool QIODevice::isCombinedAccess() const

Use openMode() instead.

bool QIODevice::isDirectAccess() const

Use !isSequential() instead.

bool QIODevice::isInactive() const

Use isOpen(), isReadable(), or isWritable() instead.

bool QIODevice::isRaw() const

Use openMode() instead.

bool QIODevice::isSequentialAccess() const

Use isSequential() instead.

bool QIODevice::isSynchronous() const

This functionality is no longer available. This function always returns false.

bool QIODevice::isTranslated() const

Use openMode() instead.

int QIODevice::mode() const

Use openMode() instead.

int QIODevice::putch(int ch)

Use putChar(ch) instead.

qint64 QIODevice::readBlock(char * data, quint64 size)

Use read(data, size) instead.

void QIODevice::resetStatus()

For device specific error handling, please refer to the individual device documentation.

See also qobject_cast().

int QIODevice::state() const

Use isOpen() instead.

Status QIODevice::status() const

For device specific error handling, please refer to the individual device documentation.

See also qobject_cast().

int QIODevice::ungetch(int ch)

Use ungetChar(ch) instead.

qint64 QIODevice::writeBlock(const char * data, quint64 size)

Use write(data, size) instead.

qint64 QIODevice::writeBlock(const QByteArray & data)

Use write(data) instead.

© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.