Compatibility Members for QIODevice

以下成员源于类 QIODevice are part of the Qt compatibility layer. We advise against using them in new code.

公共类型

typedef 偏移
typedef Status

公共函数

偏移 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 () const
int ungetch (int ch )
qint64 writeBlock (const char * data , quint64 size )
qint64 writeBlock (const QByteArray & data )

成员类型文档编制

typedef QIODevice:: 偏移

使用 qint64 代替。

typedef QIODevice:: Status

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

成员函数文档编制

偏移 QIODevice:: at () const

使用 pos () 代替。

bool QIODevice:: at ( 偏移 offset )

Use seek( offset ) 代替。

int QIODevice:: flags () const

使用 openMode () 代替。

int QIODevice:: getch ()

使用 getChar () 代替。

bool QIODevice:: isAsynchronous () const

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

bool QIODevice:: isBuffered () const

Use !( openMode () & QIODevice::Unbuffered ) 代替。

bool QIODevice:: isCombinedAccess () const

使用 openMode () 代替。

bool QIODevice:: isDirectAccess () const

Use ! isSequential () 代替。

bool QIODevice:: isInactive () const

使用 isOpen (), isReadable (),或 isWritable () 代替。

bool QIODevice:: isRaw () const

使用 openMode () 代替。

bool QIODevice:: isSequentialAccess () const

使用 isSequential () 代替。

bool QIODevice:: isSynchronous () const

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

bool QIODevice:: isTranslated () const

使用 openMode () 代替。

int QIODevice:: mode () const

使用 openMode () 代替。

int QIODevice:: putch ( int ch )

使用 putChar ( ch ) 代替。

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

Use read( data , size ) 代替。

void QIODevice:: resetStatus ()

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

另请参阅 qobject_cast ().

int QIODevice:: state () const

使用 isOpen () 代替。

Status QIODevice:: status () const

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

另请参阅 qobject_cast ().

int QIODevice:: ungetch ( int ch )

使用 ungetChar ( ch ) 代替。

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

Use write( data , size ) 代替。

qint64 QIODevice:: writeBlock (const QByteArray & data )

Use write( data ) 代替。