Главная · Все классы · Основные классы · Классы по группам · Модули · Функции

Qt 3 Support Members for QTextStream

Описанные ниже члены класса являются частью слоя поддержки Qt 3. Они введены для поддержки старого кода в Qt 4. Мы советуем не использовать их во вновь создаваемом коде.

Открытые типы

Открытые функции

Статические открытые члены


Описание типов

enum QTextStream::Encoding

КонстантаЗначениеОписание
QTextStream::Latin11Use setCodec(QTextCodec::codecForName("ISO-8859-1")) instead.
QTextStream::Locale0Use setCodec(QTextCodec::codecForLocale()) instead.
QTextStream::RawUnicode5Use setCodec(QTextCodec::codecForName("UTF-16")) instead.
QTextStream::Unicode2Use setCodec(QTextCodec::codecForName("UTF-16")) instead.
QTextStream::UnicodeNetworkOrder3Use setCodec(QTextCodec::codecForName("UTF-16BE")) instead.
QTextStream::UnicodeReverse4Use setCodec(QTextCodec::codecForName("UTF-16LE")) instead.
QTextStream::UnicodeUTF86Use setCodec(QTextCodec::codecForName("UTF-8")) instead.

Also, for all encodings except QTextStream::Latin1 and QTextStream::UTF8, you need to call setAutoDetectUnicode(false) to obtain the Qt 3 behavior in addition to the setCodec() call.

See also setCodec() and setAutoDetectUnicode().


Описание функций-членов

int QTextStream::fill ( int f )

Use setPadChar() instead.

int QTextStream::flags () const

Use fieldAlignment(), padChar(), fieldWidth(), numberFlags(), integerBase(), realNumberNotation(), and realNumberNotation instead.

int QTextStream::flags ( int f )

Это перегруженная функция, предоставленная для удобства.

Use setFieldAlignment(), setPadChar(), setFieldWidth(), setNumberFlags(), setIntegerBase(), setRealNumberNotation(), and setRealNumberNotation instead.

int QTextStream::precision ( int p )

Use setRealNumberPrecision() instead.

QString QTextStream::read ()

Это перегруженная функция, предоставленная для удобства.

Use readAll() or readLine() instead.

void QTextStream::setEncoding ( Encoding encoding )

Use setCodec() and setAutoDetectUnicode() instead.

int QTextStream::setf ( int bits )

Use setFieldAlignment(), setPadChar(), setFieldWidth(), setNumberFlags(), setIntegerBase(), setRealNumberNotation(), and setRealNumberNotation instead.

int QTextStream::setf ( int bits, int mask )

Это перегруженная функция, предоставленная для удобства.

Use setFieldAlignment(), setPadChar(), setFieldWidth(), setNumberFlags(), setIntegerBase(), setRealNumberNotation(), and setRealNumberNotation instead.

void QTextStream::unsetDevice ()

Use setDevice(0) instead.

int QTextStream::unsetf ( int bits )

Use setFieldAlignment(), setPadChar(), setFieldWidth(), setNumberFlags(), setIntegerBase(), setRealNumberNotation(), and setRealNumberNotation instead.

int QTextStream::width ( int w )

Use setFieldWidth() instead.


Описание типов

const int QTextStream::adjustfield

Use the new QTextStream manipulators instead.

const int QTextStream::basefield

Use the new QTextStream manipulators instead.

const int QTextStream::bin

Use the new QTextStream manipulators instead.

const int QTextStream::dec

Use the new QTextStream manipulators instead.

const int QTextStream::fixed

Use the new QTextStream manipulators instead.

const int QTextStream::floatfield

Use the new QTextStream manipulators instead.

const int QTextStream::hex

Use the new QTextStream manipulators instead.

const int QTextStream::internal

Use the new QTextStream manipulators instead.

const int QTextStream::left

Use the new QTextStream manipulators instead.

const int QTextStream::oct

Use the new QTextStream manipulators instead.

const int QTextStream::right

Use the new QTextStream manipulators instead.

const int QTextStream::scientific

Use the new QTextStream manipulators instead.

const int QTextStream::showbase

Use the new QTextStream manipulators instead.

const int QTextStream::showpoint

Use the new QTextStream manipulators instead.

const int QTextStream::showpos

Use the new QTextStream manipulators instead.

const int QTextStream::skipws

Use the new QTextStream manipulators instead.

const int QTextStream::uppercase

Use the new QTextStream manipulators instead.


Copyright © 2008 Trolltech Торговые марки
Qt 4.3.5