QTextStream

#include <QtCore/QTextStream>

More information will be added here shortly. For now, you'll find more extensive information about this class in the Qt reference for QTextStream


Overview

Public Types Index

Public Functions Index

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 ()
boolatEnd () const
boolautoDetectUnicode () const
QTextCodec *codec () const
QIODevice *device () const
FieldAlignmentfieldAlignment () const
intfieldWidth () const
voidflush ()
boolgenerateByteOrderMark () const
intintegerBase () const
QLocalelocale () const
NumberFlagsnumberFlags () const
QTextStream &operator<< (QBool b)
QTextStream &operator<< (QChar ch)
QTextStream &operator<< (char ch)
QTextStream &operator<< (signed short i)
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<< (float f)
QTextStream &operator<< (double f)
QTextStream &operator<< (const QString &s)
QTextStream &operator<< (const QByteArray &array)
QTextStream &operator<< (const char *c)
QTextStream &operator<< (const void *ptr)
QTextStream &operator>> (QChar &ch)
QTextStream &operator>> (char &ch)
QTextStream &operator>> (signed short &i)
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>> (float &f)
QTextStream &operator>> (double &f)
QTextStream &operator>> (QString &s)
QTextStream &operator>> (QByteArray &array)
QTextStream &operator>> (char *c)
QCharpadChar () const
qint64pos () const
QStringread (qint64 maxlen)
QStringreadAll ()
QStringreadLine (qint64 maxlen=0)
RealNumberNotationrealNumberNotation () const
intrealNumberPrecision () const
voidreset ()
voidresetStatus ()
boolseek (qint64 pos)
voidsetAutoDetectUnicode (bool enabled)
voidsetCodec (QTextCodec *codec)
voidsetCodec (const char *codecName)
voidsetDevice (QIODevice *device)
voidsetFieldAlignment (FieldAlignment alignment)
voidsetFieldWidth (int width)
voidsetGenerateByteOrderMark (bool generate)
voidsetIntegerBase (int base)
voidsetLocale (const QLocale &locale)
voidsetNumberFlags (NumberFlags flags)
voidsetPadChar (QChar ch)
voidsetRealNumberNotation (RealNumberNotation notation)
voidsetRealNumberPrecision (int precision)
voidsetStatus (Status status)
voidsetString (QString *string, QIODevice::OpenMode openMode=QIODevice::ReadWrite)
voidskipWhiteSpace ()
Statusstatus () const
QString *string () const

Public Types

FieldAlignment

AlignLeft
AlignRight
AlignCenter
AlignAccountingStyle

NumberFlag

ShowBase 0x1
ForcePoint 0x2
ForceSign 0x4
UppercaseBase 0x8
UppercaseDigits 0x10

RealNumberNotation

SmartNotation
FixedNotation
ScientificNotation

Status

Ok
ReadPastEnd
ReadCorruptData
WriteFailed

Public Functions

QTextStream ()

QTextStream (

QTextStream (
  • FILE *fileHandle,
  • QIODevice::OpenModeopenMode )

QTextStream (
  • QString *string,
  • QIODevice::OpenModeopenMode )

QTextStream (

QTextStream (
  • const QByteArray &array,
  • QIODevice::OpenModeopenMode )

virtual~QTextStream ()

Destructor.

bool atEnd ()

bool autoDetectUnicode ()

QTextCodec * codec ()

QIODevice * device ()

FieldAlignment fieldAlignment ()

int fieldWidth ()

void flush ()

bool generateByteOrderMark ()

int integerBase ()

QLocale locale ()

NumberFlags numberFlags ()

QTextStream & operator<< (
  • QBoolb)

QTextStream & operator<< (

QTextStream & operator<< (
  • charch)

QTextStream & operator<< (
  • signed shorti)

QTextStream & operator<< (
  • unsigned shorti)

QTextStream & operator<< (
  • signed inti)

QTextStream & operator<< (
  • unsigned inti)

QTextStream & operator<< (
  • signed longi)

QTextStream & operator<< (
  • unsigned longi)

QTextStream & operator<< (
  • qlonglongi)

QTextStream & operator<< (
  • qulonglongi)

QTextStream & operator<< (
  • floatf)

QTextStream & operator<< (
  • doublef)

QTextStream & operator<< (

QTextStream & operator<< (

QTextStream & operator<< (
  • const char *c)

QTextStream & operator<< (
  • const void *ptr)

QTextStream & operator>> (

QTextStream & operator>> (
  • char &ch)

QTextStream & operator>> (
  • signed short &i)

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>> (
  • float &f)

QTextStream & operator>> (
  • double &f)

QTextStream & operator>> (

QTextStream & operator>> (

QTextStream & operator>> (
  • char *c)

QChar padChar ()

qint64 pos ()

QString read (
  • qint64maxlen)

QString readAll ()

QString readLine (
  • qint64maxlen)

RealNumberNotation realNumberNotation ()

int realNumberPrecision ()

void reset ()

void resetStatus ()

bool seek (
  • qint64pos)

void setAutoDetectUnicode (
  • boolenabled)

void setCodec (

void setCodec (
  • const char *codecName)

void setDevice (

void setFieldAlignment (
  • FieldAlignmentalignment)

void setFieldWidth (
  • intwidth)

void setGenerateByteOrderMark (
  • boolgenerate)

void setIntegerBase (
  • intbase)

void setLocale (

void setNumberFlags (
  • NumberFlagsflags)

void setPadChar (

void setRealNumberNotation (
  • RealNumberNotationnotation)

void setRealNumberPrecision (
  • intprecision)

void setStatus (
  • Statusstatus)

void setString (
  • QString *string,
  • QIODevice::OpenModeopenMode )

void skipWhiteSpace ()

Status status ()

QString * string ()

Last modified: 2015-07-24



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus