Viadeo Twitter Google Bookmarks ! Facebook Digg del.icio.us MySpace Yahoo MyWeb Blinklist Netvouz Reddit Simpy StumbleUpon Bookmarks Windows Live Favorites 
Logo Documentation Qt ·  Page d'accueil  ·  Toutes les classes  ·  Toutes les fonctions  ·  Vues d'ensemble  · 

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.

Public Types

enum Encoding { Latin1, Locale, RawUnicode, Unicode, ..., UnicodeUTF8 }

Public Functions

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 )

Static Public Members

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

Member Type Documentation

enum QTextStream::Encoding

ConstantValueDescription
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().

Member Function Documentation

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.

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.

Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. Qt 4.8
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD.
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP !
 
 
 
 
Partenaires

Hébergement Web