File: qtextstream-qt3.html

package info (click to toggle)
qt4-x11 4%3A4.8.2%2Bdfsg-11
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 701,696 kB
  • sloc: cpp: 2,686,179; ansic: 375,485; python: 25,859; sh: 19,349; xml: 17,091; perl: 14,765; yacc: 5,383; asm: 5,038; makefile: 1,259; lex: 555; ruby: 526; objc: 347; cs: 112; pascal: 112; php: 54; sed: 34
file content (221 lines) | stat: -rw-r--r-- 19,814 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qtextstream.cpp -->
  <title>Qt 4.8: Qt 3 Support Members for QTextStream</title>
  <link rel="stylesheet" type="text/css" href="style/offline.css" />
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="content"> 
    <a href="index.html" class="qtref"><span>Qt Reference Documentation</span></a>
  </div>
  <div class="breadcrumb toolblock">
    <ul>
      <li class="first"><a href="index.html">Home</a></li>
      <!--  Breadcrumbs go here -->
<li><a href="modules.html">Modules</a></li>
<li><a href="qtcore.html">QtCore</a></li>
<li>QTextStream</li>
    </ul>
  </div>
</div>
<div class="content mainContent">
<h1 class="title">Qt 3 Support Members for QTextStream</h1>
<p><b>The following class members are part of the <a href="qt3support.html">Qt 3 support layer</a>.</b> They are provided to help you port old code to Qt 4. We advise against using them in new code.</p>
<p><ul><li><a href="qtextstream.html">QTextStream class reference</a></li></ul></p>
<h2>Public Types</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qtextstream-qt3.html#Encoding-enum">Encoding</a></b> { Latin1, Locale, RawUnicode, Unicode, ..., UnicodeUTF8 }</td></tr>
</table>
<h2>Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qtextstream-qt3.html#fill">fill</a></b> ( int <i>f</i> )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qtextstream-qt3.html#flags">flags</a></b> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qtextstream-qt3.html#flags-2">flags</a></b> ( int <i>f</i> )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qtextstream-qt3.html#precision">precision</a></b> ( int <i>p</i> )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qtextstream-qt3.html#read-2">read</a></b> ()</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtextstream-qt3.html#setEncoding">setEncoding</a></b> ( Encoding <i>encoding</i> )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qtextstream-qt3.html#setf">setf</a></b> ( int <i>bits</i> )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qtextstream-qt3.html#setf-2">setf</a></b> ( int <i>bits</i>, int <i>mask</i> )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtextstream-qt3.html#unsetDevice">unsetDevice</a></b> ()</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qtextstream-qt3.html#unsetf">unsetf</a></b> ( int <i>bits</i> )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qtextstream-qt3.html#width">width</a></b> ( int <i>w</i> )</td></tr>
</table>
<h2>Static Public Members</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> const int </td><td class="memItemRight bottomAlign"><b><a href="qtextstream-qt3.html#adjustfield-var">adjustfield</a></b></td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> const int </td><td class="memItemRight bottomAlign"><b><a href="qtextstream-qt3.html#basefield-var">basefield</a></b></td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> const int </td><td class="memItemRight bottomAlign"><b><a href="qtextstream-qt3.html#bin-var">bin</a></b></td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> const int </td><td class="memItemRight bottomAlign"><b><a href="qtextstream-qt3.html#dec-var">dec</a></b></td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> const int </td><td class="memItemRight bottomAlign"><b><a href="qtextstream-qt3.html#fixed-var">fixed</a></b></td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> const int </td><td class="memItemRight bottomAlign"><b><a href="qtextstream-qt3.html#floatfield-var">floatfield</a></b></td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> const int </td><td class="memItemRight bottomAlign"><b><a href="qtextstream-qt3.html#hex-var">hex</a></b></td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> const int </td><td class="memItemRight bottomAlign"><b><a href="qtextstream-qt3.html#internal-var">internal</a></b></td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> const int </td><td class="memItemRight bottomAlign"><b><a href="qtextstream-qt3.html#left-var">left</a></b></td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> const int </td><td class="memItemRight bottomAlign"><b><a href="qtextstream-qt3.html#oct-var">oct</a></b></td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> const int </td><td class="memItemRight bottomAlign"><b><a href="qtextstream-qt3.html#right-var">right</a></b></td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> const int </td><td class="memItemRight bottomAlign"><b><a href="qtextstream-qt3.html#scientific-var">scientific</a></b></td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> const int </td><td class="memItemRight bottomAlign"><b><a href="qtextstream-qt3.html#showbase-var">showbase</a></b></td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> const int </td><td class="memItemRight bottomAlign"><b><a href="qtextstream-qt3.html#showpoint-var">showpoint</a></b></td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> const int </td><td class="memItemRight bottomAlign"><b><a href="qtextstream-qt3.html#showpos-var">showpos</a></b></td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> const int </td><td class="memItemRight bottomAlign"><b><a href="qtextstream-qt3.html#skipws-var">skipws</a></b></td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> const int </td><td class="memItemRight bottomAlign"><b><a href="qtextstream-qt3.html#uppercase-var">uppercase</a></b></td></tr>
</table>
<h2>Member Type Documentation</h2>
<!-- $$$Encoding$$$Locale$$$Latin1$$$Unicode$$$UnicodeNetworkOrder$$$UnicodeReverse$$$RawUnicode$$$UnicodeUTF8 -->
<h3 class="fn"><a name="Encoding-enum"></a>enum QTextStream::<span class="name">Encoding</span></h3>
<table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><tt>QTextStream::Latin1</tt></td><td class="topAlign"><tt>1</tt></td><td class="topAlign">Use setCodec(QTextCodec::codecForName(&quot;ISO-8859-1&quot;)) instead.</td></tr>
<tr><td class="topAlign"><tt>QTextStream::Locale</tt></td><td class="topAlign"><tt>0</tt></td><td class="topAlign">Use setCodec(<a href="qtextcodec.html#codecForLocale">QTextCodec::codecForLocale</a>()) instead.</td></tr>
<tr><td class="topAlign"><tt>QTextStream::RawUnicode</tt></td><td class="topAlign"><tt>5</tt></td><td class="topAlign">Use setCodec(QTextCodec::codecForName(&quot;UTF-16&quot;)) instead.</td></tr>
<tr><td class="topAlign"><tt>QTextStream::Unicode</tt></td><td class="topAlign"><tt>2</tt></td><td class="topAlign">Use setCodec(QTextCodec::codecForName(&quot;UTF-16&quot;)) instead.</td></tr>
<tr><td class="topAlign"><tt>QTextStream::UnicodeNetworkOrder</tt></td><td class="topAlign"><tt>3</tt></td><td class="topAlign">Use setCodec(QTextCodec::codecForName(&quot;UTF-16BE&quot;)) instead.</td></tr>
<tr><td class="topAlign"><tt>QTextStream::UnicodeReverse</tt></td><td class="topAlign"><tt>4</tt></td><td class="topAlign">Use setCodec(QTextCodec::codecForName(&quot;UTF-16LE&quot;)) instead.</td></tr>
<tr><td class="topAlign"><tt>QTextStream::UnicodeUTF8</tt></td><td class="topAlign"><tt>6</tt></td><td class="topAlign">Use setCodec(QTextCodec::codecForName(&quot;UTF-8&quot;)) instead.</td></tr>
</table>
<p>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 <a href="qtextstream.html#setCodec">setCodec</a>() call.</p>
<p><b>See also </b><a href="qtextstream.html#setCodec">setCodec</a>() and <a href="qtextstream.html#setAutoDetectUnicode">setAutoDetectUnicode</a>().</p>
<!-- @@@Encoding -->
<h2>Member Function Documentation</h2>
<!-- $$$fill[overload1]$$$fillint -->
<h3 class="fn"><a name="fill"></a><span class="type">int</span> QTextStream::<span class="name">fill</span> ( <span class="type">int</span> <i>f</i> )</h3>
<p>Use <a href="qtextstream.html#setPadChar">setPadChar</a>() instead.</p>
<!-- @@@fill -->
<!-- $$$flags[overload1]$$$flags -->
<h3 class="fn"><a name="flags"></a><span class="type">int</span> QTextStream::<span class="name">flags</span> () const</h3>
<p>Use <a href="qtextstream.html#fieldAlignment">fieldAlignment</a>(), <a href="qtextstream.html#padChar">padChar</a>(), <a href="qtextstream.html#fieldWidth">fieldWidth</a>(), <a href="qtextstream.html#numberFlags">numberFlags</a>(), <a href="qtextstream.html#integerBase">integerBase</a>(), <a href="qtextstream.html#realNumberNotation">realNumberNotation</a>(), and realNumberNotation instead.</p>
<!-- @@@flags -->
<!-- $$$flags$$$flagsint -->
<h3 class="fn"><a name="flags-2"></a><span class="type">int</span> QTextStream::<span class="name">flags</span> ( <span class="type">int</span> <i>f</i> )</h3>
<p>Use <a href="qtextstream.html#setFieldAlignment">setFieldAlignment</a>(), <a href="qtextstream.html#setPadChar">setPadChar</a>(), <a href="qtextstream.html#setFieldWidth">setFieldWidth</a>(), <a href="qtextstream.html#setNumberFlags">setNumberFlags</a>(), <a href="qtextstream.html#setIntegerBase">setIntegerBase</a>(), <a href="qtextstream.html#setRealNumberNotation">setRealNumberNotation</a>(), and setRealNumberNotation instead.</p>
<!-- @@@flags -->
<!-- $$$precision[overload1]$$$precisionint -->
<h3 class="fn"><a name="precision"></a><span class="type">int</span> QTextStream::<span class="name">precision</span> ( <span class="type">int</span> <i>p</i> )</h3>
<p>Use <a href="qtextstream.html#setRealNumberPrecision">setRealNumberPrecision</a>() instead.</p>
<!-- @@@precision -->
<!-- $$$read$$$read -->
<h3 class="fn"><a name="read-2"></a><span class="type"><a href="qstring.html">QString</a></span> QTextStream::<span class="name">read</span> ()</h3>
<p>Use <a href="qtextstream.html#readAll">readAll</a>() or <a href="qtextstream.html#readLine">readLine</a>() instead.</p>
<!-- @@@read -->
<!-- $$$setEncoding[overload1]$$$setEncodingEncoding -->
<h3 class="fn"><a name="setEncoding"></a><span class="type">void</span> QTextStream::<span class="name">setEncoding</span> ( <span class="type"><a href="qtextstream-qt3.html#Encoding-enum">Encoding</a></span> <i>encoding</i> )</h3>
<p>Use <a href="qtextstream.html#setCodec">setCodec</a>() and <a href="qtextstream.html#setAutoDetectUnicode">setAutoDetectUnicode</a>() instead.</p>
<!-- @@@setEncoding -->
<!-- $$$setf[overload1]$$$setfint -->
<h3 class="fn"><a name="setf"></a><span class="type">int</span> QTextStream::<span class="name">setf</span> ( <span class="type">int</span> <i>bits</i> )</h3>
<p>Use <a href="qtextstream.html#setFieldAlignment">setFieldAlignment</a>(), <a href="qtextstream.html#setPadChar">setPadChar</a>(), <a href="qtextstream.html#setFieldWidth">setFieldWidth</a>(), <a href="qtextstream.html#setNumberFlags">setNumberFlags</a>(), <a href="qtextstream.html#setIntegerBase">setIntegerBase</a>(), <a href="qtextstream.html#setRealNumberNotation">setRealNumberNotation</a>(), and setRealNumberNotation instead.</p>
<!-- @@@setf -->
<!-- $$$setf$$$setfintint -->
<h3 class="fn"><a name="setf-2"></a><span class="type">int</span> QTextStream::<span class="name">setf</span> ( <span class="type">int</span> <i>bits</i>, <span class="type">int</span> <i>mask</i> )</h3>
<p>Use <a href="qtextstream.html#setFieldAlignment">setFieldAlignment</a>(), <a href="qtextstream.html#setPadChar">setPadChar</a>(), <a href="qtextstream.html#setFieldWidth">setFieldWidth</a>(), <a href="qtextstream.html#setNumberFlags">setNumberFlags</a>(), <a href="qtextstream.html#setIntegerBase">setIntegerBase</a>(), <a href="qtextstream.html#setRealNumberNotation">setRealNumberNotation</a>(), and setRealNumberNotation instead.</p>
<!-- @@@setf -->
<!-- $$$unsetDevice[overload1]$$$unsetDevice -->
<h3 class="fn"><a name="unsetDevice"></a><span class="type">void</span> QTextStream::<span class="name">unsetDevice</span> ()</h3>
<p>Use setDevice(0) instead.</p>
<!-- @@@unsetDevice -->
<!-- $$$unsetf[overload1]$$$unsetfint -->
<h3 class="fn"><a name="unsetf"></a><span class="type">int</span> QTextStream::<span class="name">unsetf</span> ( <span class="type">int</span> <i>bits</i> )</h3>
<p>Use <a href="qtextstream.html#setFieldAlignment">setFieldAlignment</a>(), <a href="qtextstream.html#setPadChar">setPadChar</a>(), <a href="qtextstream.html#setFieldWidth">setFieldWidth</a>(), <a href="qtextstream.html#setNumberFlags">setNumberFlags</a>(), <a href="qtextstream.html#setIntegerBase">setIntegerBase</a>(), <a href="qtextstream.html#setRealNumberNotation">setRealNumberNotation</a>(), and setRealNumberNotation instead.</p>
<!-- @@@unsetf -->
<!-- $$$width[overload1]$$$widthint -->
<h3 class="fn"><a name="width"></a><span class="type">int</span> QTextStream::<span class="name">width</span> ( <span class="type">int</span> <i>w</i> )</h3>
<p>Use <a href="qtextstream.html#setFieldWidth">setFieldWidth</a>() instead.</p>
<!-- @@@width -->
<h2>Member Variable Documentation</h2>
<!-- $$$adjustfield -->
<h3 class="fn"><a name="adjustfield-var"></a>const <span class="type">int</span> QTextStream::<span class="name">adjustfield</span></h3>
<p>Use the new <a href="qtextstream.html#qtextstream-manipulators">QTextStream manipulators</a> instead.</p>
<!-- @@@adjustfield -->
<!-- $$$basefield -->
<h3 class="fn"><a name="basefield-var"></a>const <span class="type">int</span> QTextStream::<span class="name">basefield</span></h3>
<p>Use the new <a href="qtextstream.html#qtextstream-manipulators">QTextStream manipulators</a> instead.</p>
<!-- @@@basefield -->
<!-- $$$bin -->
<h3 class="fn"><a name="bin-var"></a>const <span class="type">int</span> QTextStream::<span class="name">bin</span></h3>
<p>Use the new <a href="qtextstream.html#qtextstream-manipulators">QTextStream manipulators</a> instead.</p>
<!-- @@@bin -->
<!-- $$$dec -->
<h3 class="fn"><a name="dec-var"></a>const <span class="type">int</span> QTextStream::<span class="name">dec</span></h3>
<p>Use the new <a href="qtextstream.html#qtextstream-manipulators">QTextStream manipulators</a> instead.</p>
<!-- @@@dec -->
<!-- $$$fixed -->
<h3 class="fn"><a name="fixed-var"></a>const <span class="type">int</span> QTextStream::<span class="name">fixed</span></h3>
<p>Use the new <a href="qtextstream.html#qtextstream-manipulators">QTextStream manipulators</a> instead.</p>
<!-- @@@fixed -->
<!-- $$$floatfield -->
<h3 class="fn"><a name="floatfield-var"></a>const <span class="type">int</span> QTextStream::<span class="name">floatfield</span></h3>
<p>Use the new <a href="qtextstream.html#qtextstream-manipulators">QTextStream manipulators</a> instead.</p>
<!-- @@@floatfield -->
<!-- $$$hex -->
<h3 class="fn"><a name="hex-var"></a>const <span class="type">int</span> QTextStream::<span class="name">hex</span></h3>
<p>Use the new <a href="qtextstream.html#qtextstream-manipulators">QTextStream manipulators</a> instead.</p>
<!-- @@@hex -->
<!-- $$$internal -->
<h3 class="fn"><a name="internal-var"></a>const <span class="type">int</span> QTextStream::<span class="name">internal</span></h3>
<p>Use the new <a href="qtextstream.html#qtextstream-manipulators">QTextStream manipulators</a> instead.</p>
<!-- @@@internal -->
<!-- $$$left -->
<h3 class="fn"><a name="left-var"></a>const <span class="type">int</span> QTextStream::<span class="name">left</span></h3>
<p>Use the new <a href="qtextstream.html#qtextstream-manipulators">QTextStream manipulators</a> instead.</p>
<!-- @@@left -->
<!-- $$$oct -->
<h3 class="fn"><a name="oct-var"></a>const <span class="type">int</span> QTextStream::<span class="name">oct</span></h3>
<p>Use the new <a href="qtextstream.html#qtextstream-manipulators">QTextStream manipulators</a> instead.</p>
<!-- @@@oct -->
<!-- $$$right -->
<h3 class="fn"><a name="right-var"></a>const <span class="type">int</span> QTextStream::<span class="name">right</span></h3>
<p>Use the new <a href="qtextstream.html#qtextstream-manipulators">QTextStream manipulators</a> instead.</p>
<!-- @@@right -->
<!-- $$$scientific -->
<h3 class="fn"><a name="scientific-var"></a>const <span class="type">int</span> QTextStream::<span class="name">scientific</span></h3>
<p>Use the new <a href="qtextstream.html#qtextstream-manipulators">QTextStream manipulators</a> instead.</p>
<!-- @@@scientific -->
<!-- $$$showbase -->
<h3 class="fn"><a name="showbase-var"></a>const <span class="type">int</span> QTextStream::<span class="name">showbase</span></h3>
<p>Use the new <a href="qtextstream.html#qtextstream-manipulators">QTextStream manipulators</a> instead.</p>
<!-- @@@showbase -->
<!-- $$$showpoint -->
<h3 class="fn"><a name="showpoint-var"></a>const <span class="type">int</span> QTextStream::<span class="name">showpoint</span></h3>
<p>Use the new <a href="qtextstream.html#qtextstream-manipulators">QTextStream manipulators</a> instead.</p>
<!-- @@@showpoint -->
<!-- $$$showpos -->
<h3 class="fn"><a name="showpos-var"></a>const <span class="type">int</span> QTextStream::<span class="name">showpos</span></h3>
<p>Use the new <a href="qtextstream.html#qtextstream-manipulators">QTextStream manipulators</a> instead.</p>
<!-- @@@showpos -->
<!-- $$$skipws -->
<h3 class="fn"><a name="skipws-var"></a>const <span class="type">int</span> QTextStream::<span class="name">skipws</span></h3>
<p>Use the new <a href="qtextstream.html#qtextstream-manipulators">QTextStream manipulators</a> instead.</p>
<!-- @@@skipws -->
<!-- $$$uppercase -->
<h3 class="fn"><a name="uppercase-var"></a>const <span class="type">int</span> QTextStream::<span class="name">uppercase</span></h3>
<p>Use the new <a href="qtextstream.html#qtextstream-manipulators">QTextStream manipulators</a> instead.</p>
<!-- @@@uppercase -->
  <div class="ft">
    <span></span>
  </div>
</div> 
<div class="footer">
    <p>
      <acronym title="Copyright">&copy;</acronym> 2012 Nokia Corporation and/or its
      subsidiaries. Documentation contributions included herein are the copyrights of
      their respective owners.</p>
    <br />
    <p>
      The documentation provided herein is licensed under the terms of the
      <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation
      License version 1.3</a> as published by the Free Software Foundation.</p>
    <p>
      Documentation sources may be obtained from <a href="http://www.qt-project.org">
      www.qt-project.org</a>.</p>
    <br />
    <p>
      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. <a title="Privacy Policy"
      href="http://en.gitorious.org/privacy_policy/">Privacy Policy</a></p>
</div>
</body>
</html>