The following class members are part of the Qt 3 support layer. They are provided to help you port old code to Qt 4. We advise against using them in new code.
enum | Encoding { Latin1, Locale, RawUnicode, Unicode, ..., UnicodeUTF8 } |
int | fill ( int f ) |
int | flags () const |
int | flags ( int f ) |
int | precision ( int p ) |
QString | read () |
void | setEncoding ( Encoding encoding ) |
int | setf ( int bits ) |
int | setf ( int bits, int mask ) |
void | unsetDevice () |
int | unsetf ( int bits ) |
int | width ( int w ) |
const int | adjustfield |
const int | basefield |
const int | bin |
const int | dec |
const int | fixed |
const int | floatfield |
const int | hex |
const int | internal |
const int | left |
const int | oct |
const int | right |
const int | scientific |
const int | showbase |
const int | showpoint |
const int | showpos |
const int | skipws |
const int | uppercase |
Constant | Value | Description |
---|---|---|
QTextStream::Latin1 | 1 | Use setCodec(QTextCodec::codecForName("ISO-8859-1")) instead. |
QTextStream::Locale | 0 | Use setCodec(QTextCodec::codecForLocale()) instead. |
QTextStream::RawUnicode | 5 | Use setCodec(QTextCodec::codecForName("UTF-16")) instead. |
QTextStream::Unicode | 2 | Use setCodec(QTextCodec::codecForName("UTF-16")) instead. |
QTextStream::UnicodeNetworkOrder | 3 | Use setCodec(QTextCodec::codecForName("UTF-16BE")) instead. |
QTextStream::UnicodeReverse | 4 | Use setCodec(QTextCodec::codecForName("UTF-16LE")) instead. |
QTextStream::UnicodeUTF8 | 6 | Use 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().
Use setPadChar() instead.
Use fieldAlignment(), padChar(), fieldWidth(), numberFlags(), integerBase(), realNumberNotation(), and realNumberNotation instead.
Use setFieldAlignment(), setPadChar(), setFieldWidth(), setNumberFlags(), setIntegerBase(), setRealNumberNotation(), and setRealNumberNotation instead.
Use setRealNumberPrecision() instead.
Use readAll() or readLine() instead.
Use setCodec() and setAutoDetectUnicode() instead.
Use setFieldAlignment(), setPadChar(), setFieldWidth(), setNumberFlags(), setIntegerBase(), setRealNumberNotation(), and setRealNumberNotation instead.
Use setFieldAlignment(), setPadChar(), setFieldWidth(), setNumberFlags(), setIntegerBase(), setRealNumberNotation(), and setRealNumberNotation instead.
Use setDevice(0) instead.
Use setFieldAlignment(), setPadChar(), setFieldWidth(), setNumberFlags(), setIntegerBase(), setRealNumberNotation(), and setRealNumberNotation instead.
Use setFieldWidth() instead.
Use the new QTextStream manipulators instead.
Use the new QTextStream manipulators instead.
Use the new QTextStream manipulators instead.
Use the new QTextStream manipulators instead.
Use the new QTextStream manipulators instead.
Use the new QTextStream manipulators instead.
Use the new QTextStream manipulators instead.
Use the new QTextStream manipulators instead.
Use the new QTextStream manipulators instead.
Use the new QTextStream manipulators instead.
Use the new QTextStream manipulators instead.
Use the new QTextStream manipulators instead.
Use the new QTextStream manipulators instead.
Use the new QTextStream manipulators instead.
Use the new QTextStream manipulators instead.
Use the new QTextStream manipulators instead.
Use the new QTextStream manipulators instead.
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.