File: qtcore.html

package info (click to toggle)
python-qt4 4.0.1-5
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 18,632 kB
  • ctags: 2,639
  • sloc: python: 29,409; sh: 5,646; cpp: 3,168; xml: 149; makefile: 109
file content (298 lines) | stat: -rw-r--r-- 48,357 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
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html><head><title>QtCore Module</title><style>h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm }
a:link { color: #004faf; text-decoration: none }
a:visited { color: #672967; text-decoration: none }
td.postheader { font-family: sans-serif }
tr.address { font-family: sans-serif }
body { background: #ffffff; color: black; }
</style></head><body><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr /><td align="left" valign="top" width="32"><img align="left" border="0" height="32" src="images/rb-logo.png" width="32" /></td><td width="1">&#160;&#160;</td><td class="postheader" valign="center"><a href="../pyqt4ref.html"><font color="#004faf">Home</font></a>&#160;&#183; <a href="classes.html"><font color="#004faf">All Classes</font></a>&#160;&#183; <a href="modules.html"><font color="#004faf">Modules</font></a></td></table><h1 align="center">QtCore Module<br /></h1><p>The QtCore module contains core non-GUI functionality. <a href="#details">More...</a></p><h3>Types</h3><ul><li><div class="fn" />class <b><a href="qabstracteventdispatcher.html">QAbstractEventDispatcher</a></b></li><li><div class="fn" />class <b><a href="qabstractfileengine.html">QAbstractFileEngine</a></b></li><li><div class="fn" />class <b><a href="qabstractfileenginehandler.html">QAbstractFileEngineHandler</a></b></li><li><div class="fn" />class <b><a href="qabstractitemmodel.html">QAbstractItemModel</a></b></li><li><div class="fn" />class <b><a href="qabstractlistmodel.html">QAbstractListModel</a></b></li><li><div class="fn" />class <b><a href="qabstracttablemodel.html">QAbstractTableModel</a></b></li><li><div class="fn" />class <b><a href="qbasictimer.html">QBasicTimer</a></b></li><li><div class="fn" />class <b><a href="qbitarray.html">QBitArray</a></b></li><li><div class="fn" />class <b><a href="qbuffer.html">QBuffer</a></b></li><li><div class="fn" />class <b><a href="qbytearray.html">QByteArray</a></b></li><li><div class="fn" />class <b><a href="qbytearraymatcher.html">QByteArrayMatcher</a></b></li><li><div class="fn" />class <b><a href="qchar.html">QChar</a></b></li><li><div class="fn" />class <b><a href="qchildevent.html">QChildEvent</a></b></li><li><div class="fn" />class <b><a href="qcoreapplication.html">QCoreApplication</a></b></li><li><div class="fn" />class <b><a href="qdatastream.html">QDataStream</a></b></li><li><div class="fn" />class <b><a href="qdate.html">QDate</a></b></li><li><div class="fn" />class <b><a href="qdatetime.html">QDateTime</a></b></li><li><div class="fn" />class <b><a href="qdir.html">QDir</a></b></li><li><div class="fn" />class <b><a href="qevent.html">QEvent</a></b></li><li><div class="fn" />class <b><a href="qeventloop.html">QEventLoop</a></b></li><li><div class="fn" />class <b><a href="qfile.html">QFile</a></b></li><li><div class="fn" />class <b><a href="qfileinfo.html">QFileInfo</a></b></li><li><div class="fn" />class <b><a href="qfsfileengine.html">QFSFileEngine</a></b></li><li><div class="fn" />class <b><a href="qiodevice.html">QIODevice</a></b></li><li><div class="fn" />class <b><a href="qlatin1char.html">QLatin1Char</a></b></li><li><div class="fn" />class <b><a href="qlatin1string.html">QLatin1String</a></b></li><li><div class="fn" />class <b><a href="qlibrary.html">QLibrary</a></b></li><li><div class="fn" />class <b><a href="qlibraryinfo.html">QLibraryInfo</a></b></li><li><div class="fn" />class <b><a href="qline.html">QLine</a></b></li><li><div class="fn" />class <b><a href="qlinef.html">QLineF</a></b></li><li><div class="fn" />class <b><a href="qlocale.html">QLocale</a></b></li><li><div class="fn" />class <b><a href="qmetaclassinfo.html">QMetaClassInfo</a></b></li><li><div class="fn" />class <b><a href="qmetaenum.html">QMetaEnum</a></b></li><li><div class="fn" />class <b><a href="qmetamethod.html">QMetaMethod</a></b></li><li><div class="fn" />class <b><a href="qmetaobject.html">QMetaObject</a></b></li><li><div class="fn" />class <b><a href="qmetaproperty.html">QMetaProperty</a></b></li><li><div class="fn" />class <b><a href="qmimedata.html">QMimeData</a></b></li><li><div class="fn" />class <b><a href="qmodelindex.html">QModelIndex</a></b></li><li><div class="fn" />class <b><a href="qmutex.html">QMutex</a></b></li><li><div class="fn" />class <b><a href="qmutexlocker.html">QMutexLocker</a></b></li><li><div class="fn" />class <b><a href="qobject.html">QObject</a></b></li><li><div class="fn" />class <b><a href="qobjectcleanuphandler.html">QObjectCleanupHandler</a></b></li><li><div class="fn" />class <b><a href="qpersistentmodelindex.html">QPersistentModelIndex</a></b></li><li><div class="fn" />class <b><a href="qpluginloader.html">QPluginLoader</a></b></li><li><div class="fn" />class <b><a href="qpoint.html">QPoint</a></b></li><li><div class="fn" />class <b><a href="qpointf.html">QPointF</a></b></li><li><div class="fn" />class <b><a href="qprocess.html">QProcess</a></b></li><li><div class="fn" />class <b><a href="qreadlocker.html">QReadLocker</a></b></li><li><div class="fn" />class <b><a href="qreadwritelock.html">QReadWriteLock</a></b></li><li><div class="fn" />class <b><a href="qrect.html">QRect</a></b></li><li><div class="fn" />class <b><a href="qrectf.html">QRectF</a></b></li><li><div class="fn" />class <b><a href="qregexp.html">QRegExp</a></b></li><li><div class="fn" />class <b><a href="qsemaphore.html">QSemaphore</a></b></li><li><div class="fn" />class <b><a href="qsettings.html">QSettings</a></b></li><li><div class="fn" />class <b><a href="qsignalmapper.html">QSignalMapper</a></b></li><li><div class="fn" />class <b><a href="qsize.html">QSize</a></b></li><li><div class="fn" />class <b><a href="qsizef.html">QSizeF</a></b></li><li><div class="fn" />class <b><a href="qsocketnotifier.html">QSocketNotifier</a></b></li><li><div class="fn" />class <b><a href="qstring.html">QString</a></b></li><li><div class="fn" />class <b><a href="qstringlist.html">QStringList</a></b></li><li><div class="fn" />class <b><a href="qstringmatcher.html">QStringMatcher</a></b></li><li><div class="fn" />class <b><a href="qsysinfo.html">QSysInfo</a></b></li><li><div class="fn" />class <b><a href="qt.html">Qt</a></b></li><li><div class="fn" />class <b><a href="qtemporaryfile.html">QTemporaryFile</a></b></li><li><div class="fn" />class <b><a href="qtextcodec.html">QTextCodec</a></b></li><li><div class="fn" />class <b><a href="qtextdecoder.html">QTextDecoder</a></b></li><li><div class="fn" />class <b><a href="qtextencoder.html">QTextEncoder</a></b></li><li><div class="fn" />class <b><a href="qtextstream.html">QTextStream</a></b></li><li><div class="fn" />class <b><a href="qthread.html">QThread</a></b></li><li><div class="fn" />class <b><a href="qtime.html">QTime</a></b></li><li><div class="fn" />class <b><a href="qtimer.html">QTimer</a></b></li><li><div class="fn" />class <b><a href="qtimerevent.html">QTimerEvent</a></b></li><li><div class="fn" />enum <b><a href="qtcore.html#QtMsgType-enum">QtMsgType</a></b> { QtDebugMsg, QtWarningMsg, QtCriticalMsg, QtFatalMsg, QtSystemMsg }</li><li><div class="fn" />class <b><a href="qtranslator.html">QTranslator</a></b></li><li><div class="fn" />class <b><a href="qurl.html">QUrl</a></b></li><li><div class="fn" />class <b><a href="quuid.html">QUuid</a></b></li><li><div class="fn" />class <b><a href="qvariant.html">QVariant</a></b></li><li><div class="fn" />class <b><a href="qwaitcondition.html">QWaitCondition</a></b></li><li><div class="fn" />class <b><a href="qwritelocker.html">QWriteLocker</a></b></li></ul><h3>Module Functions</h3><ul><li><div class="fn" />QTextStream <b><a href="qtcore.html#bin">bin</a></b> (QTextStream&#160;<i>s</i>)</li><li><div class="fn" />QTextStream <b><a href="qtcore.html#bom">bom</a></b> (QTextStream&#160;<i>s</i>)</li><li><div class="fn" />QTextStream <b><a href="qtcore.html#center">center</a></b> (QTextStream&#160;<i>s</i>)</li><li><div class="fn" />QTextStream <b><a href="qtcore.html#dec">dec</a></b> (QTextStream&#160;<i>s</i>)</li><li><div class="fn" />QTextStream <b><a href="qtcore.html#endl">endl</a></b> (QTextStream&#160;<i>s</i>)</li><li><div class="fn" />QTextStream <b><a href="qtcore.html#fixed">fixed</a></b> (QTextStream&#160;<i>s</i>)</li><li><div class="fn" />QTextStream <b><a href="qtcore.html#flush">flush</a></b> (QTextStream&#160;<i>s</i>)</li><li><div class="fn" />QTextStream <b><a href="qtcore.html#forcepoint">forcepoint</a></b> (QTextStream&#160;<i>s</i>)</li><li><div class="fn" />QTextStream <b><a href="qtcore.html#forcesign">forcesign</a></b> (QTextStream&#160;<i>s</i>)</li><li><div class="fn" />QTextStream <b><a href="qtcore.html#hex">hex</a></b> (QTextStream&#160;<i>s</i>)</li><li><div class="fn" />QTextStream <b><a href="qtcore.html#left">left</a></b> (QTextStream&#160;<i>s</i>)</li><li><div class="fn" />QTextStream <b><a href="qtcore.html#lowercasebase">lowercasebase</a></b> (QTextStream&#160;<i>s</i>)</li><li><div class="fn" />QTextStream <b><a href="qtcore.html#lowercasedigits">lowercasedigits</a></b> (QTextStream&#160;<i>s</i>)</li><li><div class="fn" />QTextStream <b><a href="qtcore.html#noforcepoint">noforcepoint</a></b> (QTextStream&#160;<i>s</i>)</li><li><div class="fn" />QTextStream <b><a href="qtcore.html#noforcesign">noforcesign</a></b> (QTextStream&#160;<i>s</i>)</li><li><div class="fn" />QTextStream <b><a href="qtcore.html#noshowbase">noshowbase</a></b> (QTextStream&#160;<i>s</i>)</li><li><div class="fn" />QTextStream <b><a href="qtcore.html#oct">oct</a></b> (QTextStream&#160;<i>s</i>)</li><li><div class="fn" />object <b><a href="qtcore.html#pyqtSignature">pyqtSignature</a></b> (str)</li><li><div class="fn" /><b><a href="qtcore.html#qAddPostRoutine">qAddPostRoutine</a></b> (callable)</li><li><div class="fn" />unsigned long <b><a href="qtcore.html#qChecksum">qChecksum</a></b> (str&#160;<i>s</i>)</li><li><div class="fn" />QByteArray <b><a href="qtcore.html#qCompress">qCompress</a></b> (QByteArray&#160;<i>data</i>, int&#160;<i>compressionLevel</i>&#160;=&#160;-1)</li><li><div class="fn" /><b><a href="qtcore.html#qCritical">qCritical</a></b> (str)</li><li><div class="fn" /><b><a href="qtcore.html#qDebug">qDebug</a></b> (str)</li><li><div class="fn" /><b><a href="qtcore.html#qErrnoWarning">qErrnoWarning</a></b> (int&#160;<i>code</i>, str&#160;<i>msg</i>)</li><li><div class="fn" /><b><a href="qtcore.html#qErrnoWarning-2">qErrnoWarning</a></b> (str&#160;<i>msg</i>)</li><li><div class="fn" /><b><a href="qtcore.html#qFatal">qFatal</a></b> (str)</li><li><div class="fn" />bool <b><a href="qtcore.html#qFuzzyCompare">qFuzzyCompare</a></b> (float&#160;<i>p1</i>, float&#160;<i>p2</i>)</li><li><div class="fn" />callable <b><a href="qtcore.html#qInstallMsgHandler">qInstallMsgHandler</a></b> (callable)</li><li><div class="fn" />bool <b><a href="qtcore.html#qIsNull">qIsNull</a></b> (float&#160;<i>d</i>)</li><li><div class="fn" />bool <b><a href="qtcore.html#qRegisterResourceData">qRegisterResourceData</a></b> (int, str, str, str)</li><li><div class="fn" /><b><a href="qtcore.html#qRemovePostRoutine">qRemovePostRoutine</a></b> (callable)</li><li><div class="fn" />int <b><a href="qtcore.html#qRound">qRound</a></b> (float&#160;<i>d</i>)</li><li><div class="fn" />long <b><a href="qtcore.html#qRound64">qRound64</a></b> (float&#160;<i>d</i>)</li><li><div class="fn" />QTextStreamManipulator <b><a href="qtcore.html#qSetFieldWidth">qSetFieldWidth</a></b> (int&#160;<i>width</i>)</li><li><div class="fn" />QTextStreamManipulator <b><a href="qtcore.html#qSetPadChar">qSetPadChar</a></b> (QChar&#160;<i>ch</i>)</li><li><div class="fn" />QTextStreamManipulator <b><a href="qtcore.html#qSetRealNumberPrecision">qSetRealNumberPrecision</a></b> (int&#160;<i>precision</i>)</li><li><div class="fn" />bool <b><a href="qtcore.html#qSharedBuild">qSharedBuild</a></b> ()</li><li><div class="fn" />int <b><a href="qtcore.html#qstrcmp">qstrcmp</a></b> (str&#160;<i>str1</i>, str&#160;<i>str2</i>)</li><li><div class="fn" />str <b><a href="qtcore.html#qstrcpy">qstrcpy</a></b> (str&#160;<i>dst</i>, str&#160;<i>src</i>)</li><li><div class="fn" />str <b><a href="qtcore.html#qstrdup">qstrdup</a></b> (str)</li><li><div class="fn" />int <b><a href="qtcore.html#qstricmp">qstricmp</a></b> (str, str)</li><li><div class="fn" />unsigned long <b><a href="qtcore.html#qstrlen">qstrlen</a></b> (str&#160;<i>str</i>)</li><li><div class="fn" />int <b><a href="qtcore.html#qstrncmp">qstrncmp</a></b> (str&#160;<i>str1</i>, str&#160;<i>str2</i>, unsigned long&#160;<i>len</i>)</li><li><div class="fn" />str <b><a href="qtcore.html#qstrncpy">qstrncpy</a></b> (str&#160;<i>dst</i>, str&#160;<i>src</i>, unsigned long&#160;<i>len</i>)</li><li><div class="fn" />int <b><a href="qtcore.html#qstrnicmp">qstrnicmp</a></b> (str, str, unsigned long&#160;<i>len</i>)</li><li><div class="fn" />object <b><a href="qtcore.html#QT_TR_NOOP">QT_TR_NOOP</a></b> (object)</li><li><div class="fn" />object <b><a href="qtcore.html#QT_TRANSLATE_NOOP">QT_TRANSLATE_NOOP</a></b> (object, object)</li><li><div class="fn" />QByteArray <b><a href="qtcore.html#qUncompress">qUncompress</a></b> (QByteArray&#160;<i>data</i>)</li><li><div class="fn" />bool <b><a href="qtcore.html#qUnregisterResourceData">qUnregisterResourceData</a></b> (int, str, str, str)</li><li><div class="fn" />str <b><a href="qtcore.html#qVersion">qVersion</a></b> ()</li><li><div class="fn" /><b><a href="qtcore.html#qWarning">qWarning</a></b> (str)</li><li><div class="fn" />QTextStream <b><a href="qtcore.html#reset">reset</a></b> (QTextStream&#160;<i>s</i>)</li><li><div class="fn" />QTextStream <b><a href="qtcore.html#right">right</a></b> (QTextStream&#160;<i>s</i>)</li><li><div class="fn" />QTextStream <b><a href="qtcore.html#scientific">scientific</a></b> (QTextStream&#160;<i>s</i>)</li><li><div class="fn" />QTextStream <b><a href="qtcore.html#showbase">showbase</a></b> (QTextStream&#160;<i>s</i>)</li><li><div class="fn" />object <b><a href="qtcore.html#SIGNAL">SIGNAL</a></b> (str)</li><li><div class="fn" />object <b><a href="qtcore.html#SLOT">SLOT</a></b> (str)</li><li><div class="fn" />QTextStream <b><a href="qtcore.html#uppercasebase">uppercasebase</a></b> (QTextStream&#160;<i>s</i>)</li><li><div class="fn" />QTextStream <b><a href="qtcore.html#uppercasedigits">uppercasedigits</a></b> (QTextStream&#160;<i>s</i>)</li><li><div class="fn" />QTextStream <b><a href="qtcore.html#ws">ws</a></b> (QTextStream&#160;<i>s</i>)</li></ul><h3>Module Members</h3><ul><li><div class="fn" />int <b><a href="qtcore.html#PYQT_VERSION-var">PYQT_VERSION</a></b></li><li><div class="fn" />str <b><a href="qtcore.html#PYQT_VERSION_STR-var">PYQT_VERSION_STR</a></b></li><li><div class="fn" />int <b><a href="qtcore.html#QT_VERSION-var">QT_VERSION</a></b></li><li><div class="fn" />str <b><a href="qtcore.html#QT_VERSION_STR-var">QT_VERSION_STR</a></b></li></ul><a name="details" /><hr /><h2>Detailed Description</h2><p>The QtCore module contains non-GUI functionality.</p>
<p>All other PyQt modules rely on this module. To import the module use, for example, the following statement:</p>
<pre>
from PyQt4 import QtCore
</pre>
<hr /><h2>Type Documentation</h2><h3 class="fn"><a name="QtMsgType-enum" />QtMsgType</h3><p>This enum describes the messages that can be sent to a message handler (<a href="qtcore.html#QtMsgHandler-typedef">QtMsgHandler</a>). You can use the enum to identify and associate the various message types with the appropiate actions.</p>
<table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr>
<th width="25%">Constant</th>
<th width="15%">Value</th>
<th width="60%">Description</th>
</tr>
<tr>
<td valign="top"><tt>QtDebugMsg</tt></td>
<td align="center" valign="top"><tt>0</tt></td>
<td valign="top">A message generated by the <a href="qtcore.html#qDebug">qDebug</a>() function.</td>
</tr>
<tr>
<td valign="top"><tt>QtWarningMsg</tt></td>
<td align="center" valign="top"><tt>1</tt></td>
<td valign="top">A message generated by the <a href="qtcore.html#qWarning">qWarning</a>() function.</td>
</tr>
<tr>
<td valign="top"><tt>QtCriticalMsg</tt></td>
<td align="center" valign="top"><tt>2</tt></td>
<td valign="top">A message generated by the <a href="qtcore.html#qCritical">qCritical</a>() function.</td>
</tr>
<tr>
<td valign="top"><tt>QtFatalMsg</tt></td>
<td align="center" valign="top"><tt>3</tt></td>
<td valign="top">A message generated by the <a href="qtcore.html#qFatal">qFatal</a>() function.</td>
</tr>
<tr>
<td valign="top"><tt>QtSystemMsg</tt></td>
<td align="center" valign="top"><tt>QtCriticalMsg</tt></td>
<td valign="top"> </td>
</tr>
</table>
<br />
<br />
<p>See also <a href="qtcore.html#QtMsgHandler-typedef">QtMsgHandler</a> and <a href="qtcore.html#qInstallMsgHandler">qInstallMsgHandler</a>().</p>
<hr /><h2>Function Documentation</h2><h3 class="fn"><a name="bin" /><a href="qtextstream.html">QTextStream</a> bin (<a href="qtextstream.html">QTextStream</a>&#160;<i>s</i>)</h3><p>Calls QTextStream.setIntegerBase(2) on <i>stream</i> and returns <i>stream</i>.</p>
<p>See also <a href="qtcore.html#oct">oct</a>(), <a href="qtcore.html#dec">dec</a>(), <a href="qtcore.html#hex">hex</a>(), and <a href="qtextstream.html#qtextstream-manipulators">QTextStream manipulators</a>.</p>
<h3 class="fn"><a name="bom" /><a href="qtextstream.html">QTextStream</a> bom (<a href="qtextstream.html">QTextStream</a>&#160;<i>s</i>)</h3><p>Toggles insertion of the UTF-16 Byte Order Mark on <i>stream</i> when <a href="qtextstream.html">QTextStream</a> is used with a UTF-16 codec.</p>
<p>See also <a href="qtextstream.html#setGenerateByteOrderMark">QTextStream.setGenerateByteOrderMark</a>() and <a href="qtextstream.html#qtextstream-manipulators">QTextStream manipulators</a>.</p>
<h3 class="fn"><a name="center" /><a href="qtextstream.html">QTextStream</a> center (<a href="qtextstream.html">QTextStream</a>&#160;<i>s</i>)</h3><p>Calls QTextStream.setFieldAlignment(<a href="qtextstream.html#FieldAlignment-enum">QTextStream.AlignCenter</a>) on <i>stream</i> and returns <i>stream</i>.</p>
<p>See also <a href="qtcore.html#left">left</a>(), <a href="qtcore.html#right">right</a>(), and <a href="qtextstream.html#qtextstream-manipulators">QTextStream manipulators</a>.</p>
<h3 class="fn"><a name="dec" /><a href="qtextstream.html">QTextStream</a> dec (<a href="qtextstream.html">QTextStream</a>&#160;<i>s</i>)</h3><p>Calls QTextStream.setIntegerBase(10) on <i>stream</i> and returns <i>stream</i>.</p>
<p>See also <a href="qtcore.html#bin">bin</a>(), <a href="qtcore.html#oct">oct</a>(), <a href="qtcore.html#hex">hex</a>(), and <a href="qtextstream.html#qtextstream-manipulators">QTextStream manipulators</a>.</p>
<h3 class="fn"><a name="endl" /><a href="qtextstream.html">QTextStream</a> endl (<a href="qtextstream.html">QTextStream</a>&#160;<i>s</i>)</h3><p>Writes '\n' to the <i>stream</i> and flushes the stream.</p>
<p>Equivalent to</p>
<pre>
    stream &lt;&lt; '\n' &lt;&lt; flush;
</pre>
<p>Note: On Windows, all '\n' characters are written as '\r\n' if <a href="qtextstream.html">QTextStream</a>'s device or string is opened using the <a href="qiodevice.html#OpenModeFlag-enum">QIODevice.Text</a> flag.</p>
<p>See also <a href="qtcore.html#flush">flush</a>(), <a href="qtcore.html#reset">reset</a>(), and <a href="qtextstream.html#qtextstream-manipulators">QTextStream manipulators</a>.</p>
<h3 class="fn"><a name="fixed" /><a href="qtextstream.html">QTextStream</a> fixed (<a href="qtextstream.html">QTextStream</a>&#160;<i>s</i>)</h3><p>Calls QTextStream.setRealNumberNotation(<a href="qtextstream.html#RealNumberNotation-enum">QTextStream.FixedNotation</a>) on <i>stream</i> and returns <i>stream</i>.</p>
<p>See also <a href="qtcore.html#scientific">scientific</a>() and <a href="qtextstream.html#qtextstream-manipulators">QTextStream manipulators</a>.</p>
<h3 class="fn"><a name="flush" /><a href="qtextstream.html">QTextStream</a> flush (<a href="qtextstream.html">QTextStream</a>&#160;<i>s</i>)</h3><p>Flushes any buffered data waiting to be written to the device.</p>
<p>If <a href="qtextstream.html">QTextStream</a> operates on a string, this function does nothing.</p>
<h3 class="fn"><a name="forcepoint" /><a href="qtextstream.html">QTextStream</a> forcepoint (<a href="qtextstream.html">QTextStream</a>&#160;<i>s</i>)</h3><p>Calls QTextStream.setNumberFlags(<a href="qtextstream.html#numberFlags">QTextStream.numberFlags</a>() | <a href="qtextstream.html#NumberFlag-enum">QTextStream.ForcePoint</a>) on <i>stream</i> and returns <i>stream</i>.</p>
<p>See also <a href="qtcore.html#noforcepoint">noforcepoint</a>(), <a href="qtcore.html#forcesign">forcesign</a>(), <a href="qtcore.html#showbase">showbase</a>(), and <a href="qtextstream.html#qtextstream-manipulators">QTextStream manipulators</a>.</p>
<h3 class="fn"><a name="forcesign" /><a href="qtextstream.html">QTextStream</a> forcesign (<a href="qtextstream.html">QTextStream</a>&#160;<i>s</i>)</h3><p>Calls QTextStream.setNumberFlags(<a href="qtextstream.html#numberFlags">QTextStream.numberFlags</a>() | <a href="qtextstream.html#NumberFlag-enum">QTextStream.ForceSign</a>) on <i>stream</i> and returns <i>stream</i>.</p>
<p>See also <a href="qtcore.html#noforcesign">noforcesign</a>(), <a href="qtcore.html#forcepoint">forcepoint</a>(), <a href="qtcore.html#showbase">showbase</a>(), and <a href="qtextstream.html#qtextstream-manipulators">QTextStream manipulators</a>.</p>
<h3 class="fn"><a name="hex" /><a href="qtextstream.html">QTextStream</a> hex (<a href="qtextstream.html">QTextStream</a>&#160;<i>s</i>)</h3><p>Calls QTextStream.setIntegerBase(16) on <i>stream</i> and returns <i>stream</i>.</p>
<p>See also <a href="qtcore.html#bin">bin</a>(), <a href="qtcore.html#oct">oct</a>(), <a href="qtcore.html#dec">dec</a>(), and <a href="qtextstream.html#qtextstream-manipulators">QTextStream manipulators</a>.</p>
<h3 class="fn"><a name="left" /><a href="qtextstream.html">QTextStream</a> left (<a href="qtextstream.html">QTextStream</a>&#160;<i>s</i>)</h3><p>Calls QTextStream.setFieldAlignment(<a href="qtextstream.html#FieldAlignment-enum">QTextStream.AlignLeft</a>) on <i>stream</i> and returns <i>stream</i>.</p>
<p>See also <a href="qtcore.html#right">right</a>(), <a href="qtcore.html#center">center</a>(), and <a href="qtextstream.html#qtextstream-manipulators">QTextStream manipulators</a>.</p>
<h3 class="fn"><a name="lowercasebase" /><a href="qtextstream.html">QTextStream</a> lowercasebase (<a href="qtextstream.html">QTextStream</a>&#160;<i>s</i>)</h3><p>Calls QTextStream.setNumberFlags(<a href="qtextstream.html#numberFlags">QTextStream.numberFlags</a>() &amp; ~<a href="qtextstream.html#NumberFlag-enum">QTextStream.UppercaseBase</a>) on <i>stream</i> and returns <i>stream</i>.</p>
<p>See also <a href="qtcore.html#uppercasebase">uppercasebase</a>(), <a href="qtcore.html#lowercasedigits">lowercasedigits</a>(), and <a href="qtextstream.html#qtextstream-manipulators">QTextStream manipulators</a>.</p>
<h3 class="fn"><a name="lowercasedigits" /><a href="qtextstream.html">QTextStream</a> lowercasedigits (<a href="qtextstream.html">QTextStream</a>&#160;<i>s</i>)</h3><p>Calls QTextStream.setNumberFlags(<a href="qtextstream.html#numberFlags">QTextStream.numberFlags</a>() &amp; ~<a href="qtextstream.html#NumberFlag-enum">QTextStream.UppercaseDigits</a>) on <i>stream</i> and returns <i>stream</i>.</p>
<p>See also <a href="qtcore.html#uppercasedigits">uppercasedigits</a>(), <a href="qtcore.html#lowercasebase">lowercasebase</a>(), and <a href="qtextstream.html#qtextstream-manipulators">QTextStream manipulators</a>.</p>
<h3 class="fn"><a name="noforcepoint" /><a href="qtextstream.html">QTextStream</a> noforcepoint (<a href="qtextstream.html">QTextStream</a>&#160;<i>s</i>)</h3><p>Calls QTextStream.setNumberFlags(<a href="qtextstream.html#numberFlags">QTextStream.numberFlags</a>() &amp; ~<a href="qtextstream.html#NumberFlag-enum">QTextStream.ForcePoint</a>) on <i>stream</i> and returns <i>stream</i>.</p>
<p>See also <a href="qtcore.html#forcepoint">forcepoint</a>(), <a href="qtcore.html#noforcesign">noforcesign</a>(), <a href="qtcore.html#noshowbase">noshowbase</a>(), and <a href="qtextstream.html#qtextstream-manipulators">QTextStream manipulators</a>.</p>
<h3 class="fn"><a name="noforcesign" /><a href="qtextstream.html">QTextStream</a> noforcesign (<a href="qtextstream.html">QTextStream</a>&#160;<i>s</i>)</h3><p>Calls QTextStream.setNumberFlags(<a href="qtextstream.html#numberFlags">QTextStream.numberFlags</a>() &amp; ~<a href="qtextstream.html#NumberFlag-enum">QTextStream.ForceSign</a>) on <i>stream</i> and returns <i>stream</i>.</p>
<p>See also <a href="qtcore.html#forcesign">forcesign</a>(), <a href="qtcore.html#noforcepoint">noforcepoint</a>(), <a href="qtcore.html#noshowbase">noshowbase</a>(), and <a href="qtextstream.html#qtextstream-manipulators">QTextStream manipulators</a>.</p>
<h3 class="fn"><a name="noshowbase" /><a href="qtextstream.html">QTextStream</a> noshowbase (<a href="qtextstream.html">QTextStream</a>&#160;<i>s</i>)</h3><p>Calls QTextStream.setNumberFlags(<a href="qtextstream.html#numberFlags">QTextStream.numberFlags</a>() &amp; ~<a href="qtextstream.html#NumberFlag-enum">QTextStream.ShowBase</a>) on <i>stream</i> and returns <i>stream</i>.</p>
<p>See also <a href="qtcore.html#showbase">showbase</a>(), <a href="qtcore.html#noforcesign">noforcesign</a>(), <a href="qtcore.html#noforcepoint">noforcepoint</a>(), and <a href="qtextstream.html#qtextstream-manipulators">QTextStream manipulators</a>.</p>
<h3 class="fn"><a name="oct" /><a href="qtextstream.html">QTextStream</a> oct (<a href="qtextstream.html">QTextStream</a>&#160;<i>s</i>)</h3><p>Calls QTextStream.setIntegerBase(8) on <i>stream</i> and returns <i>stream</i>.</p>
<p>See also <a href="qtcore.html#bin">bin</a>(), <a href="qtcore.html#dec">dec</a>(), <a href="qtcore.html#hex">hex</a>(), and <a href="qtextstream.html#qtextstream-manipulators">QTextStream manipulators</a>.</p>
<h3 class="fn"><a name="pyqtSignature" />object pyqtSignature (str)</h3><h3 class="fn"><a name="qAddPostRoutine" />qAddPostRoutine (callable)</h3><h3 class="fn"><a name="qChecksum" />unsigned long qChecksum (str&#160;<i>s</i>)</h3><p>Returns the CRC-16 checksum of the first <i>len</i> bytes of <i>data</i>.</p>
<p>The checksum is independent of the byte order (endianness).</p>
<h3 class="fn"><a name="qCompress" /><a href="qbytearray.html">QByteArray</a> qCompress (<a href="qbytearray.html">QByteArray</a>&#160;<i>data</i>, int&#160;<i>compressionLevel</i>&#160;=&#160;-1)</h3><p>Compresses the <i>data</i> byte array and returns the compressed data in a new byte array.</p>
<p>The <i>compressionLevel</i> parameter specifies how much compression should be used. Valid values are between 0 and 9, with 9 corresponding to the greatest compression (i.e. smaller compressed data) at the cost of using a slower algorithm. Smaller values (8, 7, ..., 1) provide successively less compression at slightly faster speeds. The value 0 corresponds to no compression at all. The default value is -1, which specifies zlib's default compression.</p>
<p>See also <a href="qtcore.html#qUncompress">qUncompress</a>().</p>
<h3 class="fn"><a name="qCritical" />qCritical (str)</h3><p>Calls the message handler with the critical message <i>msg</i>. If no message handler has been installed, the message is printed to stderr. Under Windows, the message is sent to the debugger.</p>
<p>This function takes a format string and a list of arguments, similar to the C printf() function.</p>
<p>Example:</p>
<pre>
    void load(const QString &amp;fileName)
    {
        QFile file(fileName);
        if (!file.exists())
            qCritical("File '%s' does not exist!", qPrintable(fileName));
    }
</pre>
<p><b>Warning:</b> The internal buffer is limited to 8192 bytes, including the '\0'-terminator.</p>
<p><b>Warning:</b> Passing (const char *)0 as argument to qCritical might lead to crashes on certain platforms due to the platforms printf implementation.</p>
<p>See also <a href="qtcore.html#qDebug">qDebug</a>(), <a href="qtcore.html#qWarning">qWarning</a>(), <a href="qtcore.html#qFatal">qFatal</a>(), <a href="qtcore.html#qInstallMsgHandler">qInstallMsgHandler</a>(), and <a href="debug.html">Debugging Techniques</a>.</p>
<h3 class="fn"><a name="qDebug" />qDebug (str)</h3><p>Calls the message handler with the debug message <i>msg</i>. If no message handler has been installed, the message is printed to stderr. Under Windows, the message is sent to the debugger. This function does nothing if <tt>QT_NO_DEBUG_OUTPUT</tt> was defined during compilation.</p>
<p>If you pass the function a format string and a list of arguments, it works in similar way to the C printf() function.</p>
<p>Example:</p>
<pre>
    qDebug("Items in list: %d", myList.size());
</pre>
<p>If you include <tt>&lt;QtDebug&gt;</tt>, a more convenient syntax is also available:</p>
<pre>
    qDebug() &lt;&lt; "Brush:" &lt;&lt; myQBrush &lt;&lt; "Other value:" &lt;&lt; i;
</pre>
<p>This syntax automatically puts a single space between each item, and outputs a newline at the end. It supports many C++ and Qt types.</p>
<p><b>Warning:</b> The internal buffer is limited to 8192 bytes, including the '\0'-terminator.</p>
<p><b>Warning:</b> Passing (const char *)0 as argument to qDebug might lead to crashes on certain platforms due to the platform's printf() implementation.</p>
<p>See also <a href="qtcore.html#qWarning">qWarning</a>(), <a href="qtcore.html#qCritical">qCritical</a>(), <a href="qtcore.html#qFatal">qFatal</a>(), <a href="qtcore.html#qInstallMsgHandler">qInstallMsgHandler</a>(), and <a href="debug.html">Debugging Techniques</a>.</p>
<h3 class="fn"><a name="qErrnoWarning" />qErrnoWarning (int&#160;<i>code</i>, str&#160;<i>msg</i>)</h3><h3 class="fn"><a name="qErrnoWarning-2" />qErrnoWarning (str&#160;<i>msg</i>)</h3><h3 class="fn"><a name="qFatal" />qFatal (str)</h3><p>Calls the message handler with the fatal message <i>msg</i>. If no message handler has been installed, the message is printed to stderr. Under Windows, the message is sent to the debugger.</p>
<p>For a release library this function will exit the application with return value 1. For the debug version this function will abort on Unix systems to create a core dump, and report a _CRT_ERROR on Windows allowing to connect a debugger to the application.</p>
<p>This function takes a format string and a list of arguments, similar to the C printf() function.</p>
<p>Example:</p>
<pre>
    int divide(int a, int b)
    {
        if (b == 0)                                // program error
            qFatal("divide: cannot divide by zero");
        return a / b;
    }
</pre>
<p><b>Warning:</b> The internal buffer is limited to 8192 bytes, including the '\0'-terminator.</p>
<p><b>Warning:</b> Passing (const char *)0 as argument to qFatal might lead to crashes on certain platforms due to the platforms printf implementation.</p>
<p>See also <a href="qtcore.html#qDebug">qDebug</a>(), <a href="qtcore.html#qCritical">qCritical</a>(), <a href="qtcore.html#qWarning">qWarning</a>(), <a href="qtcore.html#qInstallMsgHandler">qInstallMsgHandler</a>(), and <a href="debug.html">Debugging Techniques</a>.</p>
<h3 class="fn"><a name="qFuzzyCompare" />bool qFuzzyCompare (float&#160;<i>p1</i>, float&#160;<i>p2</i>)</h3><h3 class="fn"><a name="qInstallMsgHandler" />callable qInstallMsgHandler (callable)</h3><p>The <i>callable</i> argument may also be None.</p><p>Installs a Qt message <i>handler</i> whis has been defined previously. Returns a pointer to the message <i>handler</i>.</p>
<p>The message handler is a function that prints out debug messages, warnings, critical and fatal error messages. The Qt library (debug version) contains hundreds of warning messages that are printed when internal errors (usually invalid function arguments) occur. If you implement your own message handler, you get total control of these messages.</p>
<p>The default message handler prints the message to the standard output under X11 or to the debugger under Windows. If it is a fatal message, the application aborts immediately.</p>
<p>Only one message handler can be defined, since this is usually done on an application-wide basis to control debug output.</p>
<p>To restore the message handler, call <tt>qInstallMsgHandler(0)</tt>.</p>
<p>Example:</p>
<pre>
    #include &lt;qapplication.h&gt;
    #include &lt;stdio.h&gt;
    #include &lt;stdlib.h&gt;

    void myMessageOutput(QtMsgType type, const char *msg)
    {
        switch (type) {
        case QtDebugMsg:
            fprintf(stderr, "Debug: %s\n", msg);
            break;
        case QtWarningMsg:
            fprintf(stderr, "Warning: %s\n", msg);
            break;
        case QtCriticalMsg:
            fprintf(stderr, "Critical: %s\n", msg);
            break;
        case QtFatalMsg:
            fprintf(stderr, "Fatal: %s\n", msg);
            abort();
        }
    }

    int main(int argc, char **argv)
    {
        qInstallMsgHandler(myMessageOutput);
        QApplication app(argc, argv);
        ...
        return app.exec();
    }
</pre>
<p>See also <a href="qtcore.html#qDebug">qDebug</a>(), <a href="qtcore.html#qWarning">qWarning</a>(), <a href="qtcore.html#qCritical">qCritical</a>(), <a href="qtcore.html#qFatal">qFatal</a>(), <a href="qtcore.html#QtMsgType-enum">QtMsgType</a>, and <a href="debug.html">Debugging Techniques</a>.</p>
<h3 class="fn"><a name="qIsNull" />bool qIsNull (float&#160;<i>d</i>)</h3><h3 class="fn"><a name="qRegisterResourceData" />bool qRegisterResourceData (int, str, str, str)</h3><h3 class="fn"><a name="qRemovePostRoutine" />qRemovePostRoutine (callable)</h3><h3 class="fn"><a name="qRound" />int qRound (float&#160;<i>d</i>)</h3><p>Rounds <i>value</i> to the nearest integer. For example:</p>
<pre>
    qreal valueA = 2.3;
    qreal valueB = 2.7;

    int roundedValueA = qRound(valueA);
    \\ roundedValueA = 2
    int roundedValueB = qRound(valueB);
    \\ roundedValueB = 3
</pre>
<h3 class="fn"><a name="qRound64" />long qRound64 (float&#160;<i>d</i>)</h3><p>Rounds <i>value</i> to the nearest 64-bit integer. For example:</p>
<pre>
    qreal valueA = 42949672960.3;
    qreal valueB = 42949672960.7;

    int roundedValueA = qRound(valueA);
    \\ roundedValueA = 42949672960
    int roundedValueB = qRound(valueB);
    \\ roundedValueB = 42949672961
</pre>
<h3 class="fn"><a name="qSetFieldWidth" />QTextStreamManipulator qSetFieldWidth (int&#160;<i>width</i>)</h3><p>Equivalent to QTextStream.setFieldWidth(<i>width</i>).</p>
<h3 class="fn"><a name="qSetPadChar" />QTextStreamManipulator qSetPadChar (<a href="qchar.html">QChar</a>&#160;<i>ch</i>)</h3><p>Equivalent to QTextStream.setPadChar(<i>ch</i>).</p>
<h3 class="fn"><a name="qSetRealNumberPrecision" />QTextStreamManipulator qSetRealNumberPrecision (int&#160;<i>precision</i>)</h3><p>Equivalent to QTextStream.setRealNumberPrecision(<i>precision</i>).</p>
<h3 class="fn"><a name="qSharedBuild" />bool qSharedBuild ()</h3><h3 class="fn"><a name="qstrcmp" />int qstrcmp (str&#160;<i>str1</i>, str&#160;<i>str2</i>)</h3><p>A safe strcmp() function.</p>
<p>Compares <i>str1</i> and <i>str2</i>. Returns a negative value if <i>str1</i> is less than <i>str2</i>, 0 if <i>str1</i> is equal to <i>str2</i> or a positive value if <i>str1</i> is greater than <i>str2</i>.</p>
<p>Special case 1: Returns 0 if <i>str1</i> and <i>str2</i> are both 0.</p>
<p>Special case 2: Returns a random non-zero value if <i>str1</i> is 0 or <i>str2</i> is 0 (but not both).</p>
<p>See also <a href="qtcore.html#qstrncmp">qstrncmp</a>(), <a href="qtcore.html#qstricmp">qstricmp</a>(), <a href="qtcore.html#qstrnicmp">qstrnicmp</a>(), and <a href="qbytearray.html#note-on-8-bit-character-comparisons">Note on 8-bit character comparisons</a>.</p>
<h3 class="fn"><a name="qstrcpy" />str qstrcpy (str&#160;<i>dst</i>, str&#160;<i>src</i>)</h3><p>Copies all the characters up to and including the '\0' from <i>src</i> into <i>dst</i> and returns a pointer to <i>dst</i>. If <i>src</i> is 0, it immediately returns 0.</p>
<p>This function assumes that <i>dst</i> is large enough to hold the contents of <i>src</i>.</p>
<p>See also <a href="qtcore.html#qstrncpy">qstrncpy</a>().</p>
<h3 class="fn"><a name="qstrdup" />str qstrdup (str)</h3><p>Returns a duplicate string.</p>
<p>Allocates space for a copy of <i>src</i>, copies it, and returns a pointer to the copy. If <i>src</i> is 0, it immediately returns 0.</p>
<p>Ownership is passed to the caller, so the returned string must be deleted using <tt>delete[]</tt>.</p>
<h3 class="fn"><a name="qstricmp" />int qstricmp (str, str)</h3><p>A safe stricmp() function.</p>
<p>Compares <i>str1</i> and <i>str2</i> ignoring the case of the characters. The encoding of the strings is assumed to be Latin-1.</p>
<p>Returns a negative value if <i>str1</i> is less than <i>str2</i>, 0 if <i>str1</i> is equal to <i>str2</i> or a positive value if <i>str1</i> is greater than <i>str2</i>.</p>
<p>Special case 1: Returns 0 if <i>str1</i> and <i>str2</i> are both 0.</p>
<p>Special case 2: Returns a random non-zero value if <i>str1</i> is 0 or <i>str2</i> is 0 (but not both).</p>
<p>See also <a href="qtcore.html#qstrcmp">qstrcmp</a>(), <a href="qtcore.html#qstrncmp">qstrncmp</a>(), <a href="qtcore.html#qstrnicmp">qstrnicmp</a>(), and <a href="qbytearray.html#note-on-8-bit-character-comparisons">Note on 8-bit character comparisons</a>.</p>
<h3 class="fn"><a name="qstrlen" />unsigned long qstrlen (str&#160;<i>str</i>)</h3><p>A safe strlen() function.</p>
<p>Returns the number of characters that precede the terminating '\0', or 0 if <i>str</i> is 0.</p>
<h3 class="fn"><a name="qstrncmp" />int qstrncmp (str&#160;<i>str1</i>, str&#160;<i>str2</i>, unsigned long&#160;<i>len</i>)</h3><p>A safe strncmp() function.</p>
<p>Compares at most <i>len</i> bytes of <i>str1</i> and <i>str2</i>.</p>
<p>Returns a negative value if <i>str1</i> is less than <i>str2</i>, 0 if <i>str1</i> is equal to <i>str2</i> or a positive value if <i>str1</i> is greater than <i>str2</i>.</p>
<p>Special case 1: Returns 0 if <i>str1</i> and <i>str2</i> are both 0.</p>
<p>Special case 2: Returns a random non-zero value if <i>str1</i> is 0 or <i>str2</i> is 0 (but not both).</p>
<p>See also <a href="qtcore.html#qstrcmp">qstrcmp</a>(), <a href="qtcore.html#qstricmp">qstricmp</a>(), <a href="qtcore.html#qstrnicmp">qstrnicmp</a>(), and <a href="qbytearray.html#note-on-8-bit-character-comparisons">Note on 8-bit character comparisons</a>.</p>
<h3 class="fn"><a name="qstrncpy" />str qstrncpy (str&#160;<i>dst</i>, str&#160;<i>src</i>, unsigned long&#160;<i>len</i>)</h3><p>A safe strncpy() function.</p>
<p>Copies at most <i>len</i> bytes from <i>src</i> (stopping at <i>len</i> or the terminating '\0' whichever comes first) into <i>dst</i> and returns a pointer to <i>dst</i>. Guarantees that <i>dst</i> is '\0'-terminated. If <i>src</i> or <i>dst</i> is 0, returns 0 immediately.</p>
<p>This function assumes that <i>dst</i> is at least <i>len</i> characters long.</p>
<p>See also <a href="qtcore.html#qstrcpy">qstrcpy</a>().</p>
<h3 class="fn"><a name="qstrnicmp" />int qstrnicmp (str, str, unsigned long&#160;<i>len</i>)</h3><p>A safe strnicmp() function.</p>
<p>Compares at most <i>len</i> bytes of <i>str1</i> and <i>str2</i> ignoring the case of the characters. The encoding of the strings is assumed to be Latin-1.</p>
<p>Returns a negative value if <i>str1</i> is less than <i>str2</i>, 0 if <i>str1</i> is equal to <i>str2</i> or a positive value if <i>str1</i> is greater than <i>str2</i>.</p>
<p>Special case 1: Returns 0 if <i>str1</i> and <i>str2</i> are both 0.</p>
<p>Special case 2: Returns a random non-zero value if <i>str1</i> is 0 or <i>str2</i> is 0 (but not both).</p>
<p>See also <a href="qtcore.html#qstrcmp">qstrcmp</a>(), <a href="qtcore.html#qstrncmp">qstrncmp</a>(), <a href="qtcore.html#qstricmp">qstricmp</a>(), and <a href="qbytearray.html#note-on-8-bit-character-comparisons">Note on 8-bit character comparisons</a>.</p>
<h3 class="fn"><a name="QT_TR_NOOP" />object QT_TR_NOOP (object)</h3><p>Marks the string literal <i>sourceText</i> for dynamic translation in the current context (class), i.e the stored <i>sourceText</i> will not be altered. For example:</p>
<pre>
    QString FriendlyConversation.greeting(int type)
    {
        static const char *greeting_strings[] = {
            QT_TR_NOOP("Hello"),
            QT_TR_NOOP("Goodbye")
        };
        return tr(greeting_strings[type]);
    }
</pre>
<p>The macro expands to <i>sourceText</i>.</p>
<p>See also <a href="qtcore.html#QT_TRANSLATE_NOOP">QT_TRANSLATE_NOOP</a>() and <a href="i18n.html">Internationalization with Qt</a>.</p>
<h3 class="fn"><a name="QT_TRANSLATE_NOOP" />object QT_TRANSLATE_NOOP (object, object)</h3><p>Marks the string literal <i>sourceText</i> for dynamic translation in the given <i>context</i>, i.e the stored <i>sourceText</i> will not be altered. The <i>context</i> is typically a class. For example:</p>
<pre>
    static const char *greeting_strings[] = {
        QT_TRANSLATE_NOOP("FriendlyConversation", "Hello"),
        QT_TRANSLATE_NOOP("FriendlyConversation", "Goodbye")
    };

    QString FriendlyConversation.greeting(int type)
    {
        return tr(greeting_strings[type]);
    }

    QString global_greeting(int type)
    {
        return qApp-&gt;translate("FriendlyConversation",
                               greeting_strings[type]);
    }
</pre>
<p>The macro expands to <i>sourceText</i>.</p>
<p>See also <a href="qtcore.html#QT_TR_NOOP">QT_TR_NOOP</a>() and <a href="i18n.html">Internationalization with Qt</a>.</p>
<h3 class="fn"><a name="qUncompress" /><a href="qbytearray.html">QByteArray</a> qUncompress (<a href="qbytearray.html">QByteArray</a>&#160;<i>data</i>)</h3><p>Uncompresses the <i>data</i> byte array and returns a new byte array with the uncompressed data.</p>
<p>Returns an empty <a href="qbytearray.html">QByteArray</a> if the input data was corrupt.</p>
<p>This function will uncompress data compressed with <a href="qtcore.html#qCompress">qCompress</a>() from this and any earlier Qt version, back to Qt 3.1 when this feature was added.</p>
<p>See also <a href="qtcore.html#qCompress">qCompress</a>().</p>
<h3 class="fn"><a name="qUnregisterResourceData" />bool qUnregisterResourceData (int, str, str, str)</h3><h3 class="fn"><a name="qVersion" />str qVersion ()</h3><p>Returns the version number of Qt at run-time as a string (for example, "4.1.2"). This may be a different version than the version the application was compiled against.</p>
<p>See also <a href="qtcore.html#QT_VERSION_STR">QT_VERSION_STR</a>.</p>
<h3 class="fn"><a name="qWarning" />qWarning (str)</h3><p>Calls the message handler with the warning message <i>msg</i>. If no message handler has been installed, the message is printed to stderr. Under Windows, the message is sent to the debugger. This function does nothing if <tt>QT_NO_WARNING_OUTPUT</tt> was defined during compilation; it exits if the environment variable <tt>QT_FATAL_WARNINGS</tt> is defined.</p>
<p>This function takes a format string and a list of arguments, similar to the C printf() function.</p>
<p>Example:</p>
<pre>
    void f(int c)
    {
        if (c &gt; 200)
            qWarning("f: bad argument, c == %d", c);
    }
</pre>
<p><b>Warning:</b> The internal buffer is limited to 8192 bytes, including the '\0'-terminator.</p>
<p><b>Warning:</b> Passing (const char *)0 as argument to qWarning might lead to crashes on certain platforms due to the platforms printf implementation.</p>
<p>See also <a href="qtcore.html#qDebug">qDebug</a>(), <a href="qtcore.html#qCritical">qCritical</a>(), <a href="qtcore.html#qFatal">qFatal</a>(), <a href="qtcore.html#qInstallMsgHandler">qInstallMsgHandler</a>(), and <a href="debug.html">Debugging Techniques</a>.</p>
<h3 class="fn"><a name="reset" /><a href="qtextstream.html">QTextStream</a> reset (<a href="qtextstream.html">QTextStream</a>&#160;<i>s</i>)</h3><p>Resets <a href="qtextstream.html">QTextStream</a>'s formatting options, bringing it back to its original constructed state. The device, string and any buffered data is left untouched.</p>
<h3 class="fn"><a name="right" /><a href="qtextstream.html">QTextStream</a> right (<a href="qtextstream.html">QTextStream</a>&#160;<i>s</i>)</h3><p>Calls QTextStream.setFieldAlignment(<a href="qtextstream.html#FieldAlignment-enum">QTextStream.AlignRight</a>) on <i>stream</i> and returns <i>stream</i>.</p>
<p>See also <a href="qtcore.html#left">left</a>(), <a href="qtcore.html#center">center</a>(), and <a href="qtextstream.html#qtextstream-manipulators">QTextStream manipulators</a>.</p>
<h3 class="fn"><a name="scientific" /><a href="qtextstream.html">QTextStream</a> scientific (<a href="qtextstream.html">QTextStream</a>&#160;<i>s</i>)</h3><p>Calls QTextStream.setRealNumberNotation(<a href="qtextstream.html#RealNumberNotation-enum">QTextStream.ScientificNotation</a>) on <i>stream</i> and returns <i>stream</i>.</p>
<p>See also <a href="qtcore.html#fixed">fixed</a>() and <a href="qtextstream.html#qtextstream-manipulators">QTextStream manipulators</a>.</p>
<h3 class="fn"><a name="showbase" /><a href="qtextstream.html">QTextStream</a> showbase (<a href="qtextstream.html">QTextStream</a>&#160;<i>s</i>)</h3><p>Calls QTextStream.setNumberFlags(<a href="qtextstream.html#numberFlags">QTextStream.numberFlags</a>() | <a href="qtextstream.html#NumberFlag-enum">QTextStream.ShowBase</a>) on <i>stream</i> and returns <i>stream</i>.</p>
<p>See also <a href="qtcore.html#noshowbase">noshowbase</a>(), <a href="qtcore.html#forcesign">forcesign</a>(), <a href="qtcore.html#forcepoint">forcepoint</a>(), and <a href="qtextstream.html#qtextstream-manipulators">QTextStream manipulators</a>.</p>
<h3 class="fn"><a name="SIGNAL" />object SIGNAL (str)</h3><h3 class="fn"><a name="SLOT" />object SLOT (str)</h3><h3 class="fn"><a name="uppercasebase" /><a href="qtextstream.html">QTextStream</a> uppercasebase (<a href="qtextstream.html">QTextStream</a>&#160;<i>s</i>)</h3><p>Calls QTextStream.setNumberFlags(<a href="qtextstream.html#numberFlags">QTextStream.numberFlags</a>() | <a href="qtextstream.html#NumberFlag-enum">QTextStream.UppercaseBase</a>) on <i>stream</i> and returns <i>stream</i>.</p>
<p>See also <a href="qtcore.html#lowercasebase">lowercasebase</a>(), <a href="qtcore.html#uppercasedigits">uppercasedigits</a>(), and <a href="qtextstream.html#qtextstream-manipulators">QTextStream manipulators</a>.</p>
<h3 class="fn"><a name="uppercasedigits" /><a href="qtextstream.html">QTextStream</a> uppercasedigits (<a href="qtextstream.html">QTextStream</a>&#160;<i>s</i>)</h3><p>Calls QTextStream.setNumberFlags(<a href="qtextstream.html#numberFlags">QTextStream.numberFlags</a>() | <a href="qtextstream.html#NumberFlag-enum">QTextStream.UppercaseDigits</a>) on <i>stream</i> and returns <i>stream</i>.</p>
<p>See also <a href="qtcore.html#lowercasedigits">lowercasedigits</a>(), <a href="qtcore.html#uppercasebase">uppercasebase</a>(), and <a href="qtextstream.html#qtextstream-manipulators">QTextStream manipulators</a>.</p>
<h3 class="fn"><a name="ws" /><a href="qtextstream.html">QTextStream</a> ws (<a href="qtextstream.html">QTextStream</a>&#160;<i>s</i>)</h3><p>Calls skipWhiteSpace() on <i>stream</i> and returns <i>stream</i>.</p>
<p>See also <a href="qtextstream.html#qtextstream-manipulators">QTextStream manipulators</a>.</p>
<hr /><h2>Member Documentation</h2><h3 class="fn"><a name="PYQT_VERSION-var" />int PYQT_VERSION</h3><p>This member should be treated as a constant.</p><h3 class="fn"><a name="PYQT_VERSION_STR-var" />str PYQT_VERSION_STR</h3><p>This member should be treated as a constant.</p><h3 class="fn"><a name="QT_VERSION-var" />int QT_VERSION</h3><p>This member should be treated as a constant.</p><h3 class="fn"><a name="QT_VERSION_STR-var" />str QT_VERSION_STR</h3><p>This member should be treated as a constant.</p><address><hr /><div align="center"><table border="0" cellspacing="0" width="100%"><tr class="address"><td width="25%">PyQt&#160;4.0.1 for X11</td><td align="center" width="50%">Copyright &#169; <a href="http://www.riverbankcomputing.com">Riverbank&#160;Computing&#160;Ltd</a> and <a href="http://www.trolltech.com">Trolltech&#160;AS</a> 2006</td><td align="right" width="25%">Qt&#160;4.1.4</td></tr></table></div></address></body></html>