Public Functions
QTextStream ()
QTextStream ( QIODevice * device )
QTextStream ( FILE * fileHandle, QIODevice::OpenMode openMode = QIODevice::ReadWrite )
QTextStream ( QString * string, QIODevice::OpenMode openMode = QIODevice::ReadWrite )
QTextStream ( QByteArray * array, QIODevice::OpenMode openMode = QIODevice::ReadWrite )
QTextStream ( const QByteArray & array, QIODevice::OpenMode openMode = QIODevice::ReadOnly )
virtual ~QTextStream ()
bool atEnd () const
bool autoDetectUnicode () const
QTextCodec * codec () const
QIODevice * device () const
FieldAlignment fieldAlignment () const
int fieldWidth () const
void flush ()
bool generateByteOrderMark () const
int integerBase () const
QLocale locale () const
NumberFlags numberFlags () const
QChar padChar () const
qint64 pos () const
QString read ( qint64 maxlen )
QString readAll ()
QString readLine ( qint64 maxlen = 0 )
RealNumberNotation realNumberNotation () const
int realNumberPrecision () const
void reset ()
void resetStatus ()
bool seek ( qint64 pos )
void setAutoDetectUnicode ( bool enabled )
void setCodec ( QTextCodec * codec )
void setCodec ( const char * codecName )
void setDevice ( QIODevice * device )
void setFieldAlignment ( FieldAlignment mode )
void setFieldWidth ( int width )
void setGenerateByteOrderMark ( bool generate )
void setIntegerBase ( int base )
void setLocale ( const QLocale & locale )
void setNumberFlags ( NumberFlags flags )
void setPadChar ( QChar ch )
void setRealNumberNotation ( RealNumberNotation notation )
void setRealNumberPrecision ( int precision )
void setStatus ( Status status )
void setString ( QString * string, QIODevice::OpenMode openMode = QIODevice::ReadWrite )
void skipWhiteSpace ()
Status status () const
QString * string () const
QTextStream & operator<< ( QChar c )
QTextStream & operator<< ( signed short i )
QTextStream & operator<< ( float f )
QTextStream & operator<< ( const QString & string )
QTextStream & operator<< ( char c )
QTextStream & operator<< ( unsigned short i )
QTextStream & operator<< ( signed int i )
QTextStream & operator<< ( unsigned int i )
QTextStream & operator<< ( signed long i )
QTextStream & operator<< ( unsigned long i )
QTextStream & operator<< ( qlonglong i )
QTextStream & operator<< ( qulonglong i )
QTextStream & operator<< ( double f )
QTextStream & operator<< ( const QByteArray & array )
QTextStream & operator<< ( const char * string )
QTextStream & operator<< ( const void * ptr )
下面的那些
QTextStream & operator>> ( QChar & c )
QTextStream & operator>> ( signed short & i )
QTextStream & operator>> ( float & f )
QTextStream & operator>> ( QString & str )
QTextStream & operator>> ( char & c )
QTextStream & operator>> ( unsigned short & i )
QTextStream & operator>> ( signed int & i )
QTextStream & operator>> ( unsigned int & i )
QTextStream & operator>> ( signed long & i )
QTextStream & operator>> ( unsigned long & i )
QTextStream & operator>> ( qlonglong & i )
QTextStream & operator>> ( qulonglong & i )
QTextStream & operator>> ( double & f )
QTextStream & operator>> ( QByteArray & array )
QTextStream & operator>> ( char * c )