Qt:Документация 4.3.2/qtextstream-qt3
Материал из Wiki.crossplatform.ru
![]() | Внимание: Актуальная версия перевода документации находится здесь |
__NOTOC__
Главная · Все классы · Основные классы · Классы по группам · Модули · Функции |
[править] Qt 3 Support Members for QTextStream
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
[править] Описание типов членов
[править] enum QTextStream::Encoding
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().
[править] Описание функций-членов
[править] 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 )
This is an overloaded member function, provided for convenience.
Use setFieldAlignment(), setPadChar(), setFieldWidth(), setNumberFlags(), setIntegerBase(), setRealNumberNotation(), and setRealNumberNotation instead.
[править] int QTextStream::precision ( int p )
Use setRealNumberPrecision() instead.
[править] QString QTextStream::read ()
This is an overloaded member function, provided for convenience.
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 )
This is an overloaded member function, provided for convenience.
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.
[править] Member Variable Documentation
[править] 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 © 2007 Trolltech | Trademarks | Qt 4.3.2
|