~oif-team/ubuntu/natty/qt4-x11/xi2.1

« back to all changes in this revision

Viewing changes to doc/html/qdebug.html

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghersi
  • Date: 2009-11-02 18:30:08 UTC
  • mfrom: (1.2.2 upstream)
  • mto: (15.2.5 experimental)
  • mto: This revision was merged to the branch mainline in revision 88.
  • Revision ID: james.westby@ubuntu.com-20091102183008-b6a4gcs128mvfb3m
Tags: upstream-4.6.0~beta1
ImportĀ upstreamĀ versionĀ 4.6.0~beta1

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
<!DOCTYPE html
3
3
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
4
4
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
 
<!-- /fasttmp/mkdist-qt-4.5.2-1245473805/qt-x11-opensource-src-4.5.2/src/corelib/io/qdebug.cpp -->
 
5
<!-- qdebug.cpp -->
6
6
<head>
7
 
  <title>Qt 4.5: QDebug Class Reference</title>
 
7
  <title>Qt 4.6: QDebug Class Reference</title>
8
8
  <link href="classic.css" rel="stylesheet" type="text/css" />
9
9
</head>
10
10
<body>
 
11
<a name="//apple_ref/cpp/cl//QDebug" />
11
12
<table border="0" cellpadding="0" cellspacing="0" width="100%">
12
13
<tr>
13
 
<td align="left" valign="top" width="32"><a href="http://qtsoftware.com/products/qt"><img src="images/qt-logo.png" align="left" border="0" /></a></td>
14
 
<td width="1">&nbsp;&nbsp;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&nbsp;&middot; <a href="namespaces.html"><font color="#004faf">All&nbsp;Namespaces</font></a>&nbsp;&middot; <a href="classes.html"><font color="#004faf">All&nbsp;Classes</font></a>&nbsp;&middot; <a href="mainclasses.html"><font color="#004faf">Main&nbsp;Classes</font></a>&nbsp;&middot; <a href="groups.html"><font color="#004faf">Grouped&nbsp;Classes</font></a>&nbsp;&middot; <a href="modules.html"><font color="#004faf">Modules</font></a>&nbsp;&middot; <a href="functions.html"><font color="#004faf">Functions</font></a></td>
15
 
<td align="right" valign="top" width="230"></td></tr></table><h1 class="title">QDebug Class Reference<br /><span class="small-subtitle">[<a href="qtcore.html">QtCore</a> module]</span>
 
14
<td align="left" valign="top" width="32"><a href="http://qt.nokia.com/"><img src="images/qt-logo.png" align="left" border="0" /></a></td>
 
15
<td width="1">&nbsp;&nbsp;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&nbsp;&middot; <a href="classes.html"><font color="#004faf">All&nbsp;Classes</font></a>&nbsp;&middot; <a href="functions.html"><font color="#004faf">All&nbsp;Functions</font></a>&nbsp;&middot; <a href="overviews.html"><font color="#004faf">Overviews</font></a></td><td class="searchBar" align="right" valign="center"><form action="http://www.google.com/cse" id="cse-search-box"><div><input type="hidden" name="cx" value="000136343326384750312:dhbxnqlakyu" /><input type="hidden" name="ie" value="UTF-8" /><input type="text" name="q" size="31" /><input type="submit" name="sa" value="Search" /></div></form></td>
 
16
</tr></table><h1 class="title">QDebug Class Reference<br /><span class="small-subtitle">[<a href="qtcore.html">QtCore</a> module]</span>
16
17
</h1>
17
18
<p>The QDebug class provides an output stream for debugging information. <a href="#details">More...</a></p>
18
19
<pre> #include &lt;QDebug&gt;</pre><ul>
19
20
<li><a href="qdebug-members.html">List of all members, including inherited members</a></li>
20
21
</ul>
 
22
<hr />
21
23
<a name="public-functions"></a>
22
 
<h3>Public Functions</h3>
23
 
<ul>
24
 
<li><div class="fn"></div><b><a href="qdebug.html#QDebugx">QDebug</a></b> ( QIODevice * <i>device</i> )</li>
25
 
<li><div class="fn"></div><b><a href="qdebug.html#QDebug-2">QDebug</a></b> ( QString * <i>string</i> )</li>
26
 
<li><div class="fn"></div><b><a href="qdebug.html#QDebug-3">QDebug</a></b> ( QtMsgType <i>type</i> )</li>
27
 
<li><div class="fn"></div><b><a href="qdebug.html#QDebug-4">QDebug</a></b> ( const QDebug &amp; <i>other</i> )</li>
28
 
<li><div class="fn"></div><b><a href="qdebug.html#dtor.QDebug">~QDebug</a></b> ()</li>
29
 
<li><div class="fn"></div>QDebug &amp; <b><a href="qdebug.html#maybeSpace">maybeSpace</a></b> ()</li>
30
 
<li><div class="fn"></div>QDebug &amp; <b><a href="qdebug.html#nospace">nospace</a></b> ()</li>
31
 
<li><div class="fn"></div>QDebug &amp; <b><a href="qdebug.html#space">space</a></b> ()</li>
32
 
<li><div class="fn"></div>QDebug &amp; <b><a href="qdebug.html#operator-lt-lt">operator&lt;&lt;</a></b> ( QChar <i>t</i> )</li>
33
 
<li><div class="fn"></div>QDebug &amp; <b><a href="qdebug.html#operator-lt-lt-3">operator&lt;&lt;</a></b> ( bool <i>t</i> )</li>
34
 
<li><div class="fn"></div>QDebug &amp; <b><a href="qdebug.html#operator-lt-lt-4">operator&lt;&lt;</a></b> ( char <i>t</i> )</li>
35
 
<li><div class="fn"></div>QDebug &amp; <b><a href="qdebug.html#operator-lt-lt-5">operator&lt;&lt;</a></b> ( signed short <i>i</i> )</li>
36
 
<li><div class="fn"></div>QDebug &amp; <b><a href="qdebug.html#operator-lt-lt-6">operator&lt;&lt;</a></b> ( unsigned short <i>i</i> )</li>
37
 
<li><div class="fn"></div>QDebug &amp; <b><a href="qdebug.html#operator-lt-lt-7">operator&lt;&lt;</a></b> ( signed int <i>i</i> )</li>
38
 
<li><div class="fn"></div>QDebug &amp; <b><a href="qdebug.html#operator-lt-lt-8">operator&lt;&lt;</a></b> ( unsigned int <i>i</i> )</li>
39
 
<li><div class="fn"></div>QDebug &amp; <b><a href="qdebug.html#operator-lt-lt-9">operator&lt;&lt;</a></b> ( signed long <i>l</i> )</li>
40
 
<li><div class="fn"></div>QDebug &amp; <b><a href="qdebug.html#operator-lt-lt-10">operator&lt;&lt;</a></b> ( unsigned long <i>l</i> )</li>
41
 
<li><div class="fn"></div>QDebug &amp; <b><a href="qdebug.html#operator-lt-lt-11">operator&lt;&lt;</a></b> ( qint64 <i>i</i> )</li>
42
 
<li><div class="fn"></div>QDebug &amp; <b><a href="qdebug.html#operator-lt-lt-12">operator&lt;&lt;</a></b> ( quint64 <i>i</i> )</li>
43
 
<li><div class="fn"></div>QDebug &amp; <b><a href="qdebug.html#operator-lt-lt-13">operator&lt;&lt;</a></b> ( float <i>f</i> )</li>
44
 
<li><div class="fn"></div>QDebug &amp; <b><a href="qdebug.html#operator-lt-lt-14">operator&lt;&lt;</a></b> ( double <i>f</i> )</li>
45
 
<li><div class="fn"></div>QDebug &amp; <b><a href="qdebug.html#operator-lt-lt-15">operator&lt;&lt;</a></b> ( const char * <i>s</i> )</li>
46
 
<li><div class="fn"></div>QDebug &amp; <b><a href="qdebug.html#operator-lt-lt-16">operator&lt;&lt;</a></b> ( const QString &amp; <i>s</i> )</li>
47
 
<li><div class="fn"></div>QDebug &amp; <b><a href="qdebug.html#operator-lt-lt-17">operator&lt;&lt;</a></b> ( const QStringRef &amp; <i>s</i> )</li>
48
 
<li><div class="fn"></div>QDebug &amp; <b><a href="qdebug.html#operator-lt-lt-18">operator&lt;&lt;</a></b> ( const QLatin1String &amp; <i>s</i> )</li>
49
 
<li><div class="fn"></div>QDebug &amp; <b><a href="qdebug.html#operator-lt-lt-19">operator&lt;&lt;</a></b> ( const QByteArray &amp; <i>b</i> )</li>
50
 
<li><div class="fn"></div>QDebug &amp; <b><a href="qdebug.html#operator-lt-lt-20">operator&lt;&lt;</a></b> ( const void * <i>p</i> )</li>
51
 
<li><div class="fn"></div>QDebug &amp; <b><a href="qdebug.html#operator-eq">operator=</a></b> ( const QDebug &amp; <i>other</i> )</li>
52
 
</ul>
 
24
<h2>Public Functions</h2>
 
25
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
 
26
<tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qdebug.html#QDebugx">QDebug</a></b> ( QIODevice * <i>device</i> )</td></tr>
 
27
<tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qdebug.html#QDebug-2">QDebug</a></b> ( QString * <i>string</i> )</td></tr>
 
28
<tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qdebug.html#QDebug-3">QDebug</a></b> ( QtMsgType <i>type</i> )</td></tr>
 
29
<tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qdebug.html#QDebug-4">QDebug</a></b> ( const QDebug &amp; <i>other</i> )</td></tr>
 
30
<tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qdebug.html#dtor.QDebug">~QDebug</a></b> ()</td></tr>
 
31
<tr><td class="memItemLeft" align="right" valign="top">QDebug &amp; </td><td class="memItemRight" valign="bottom"><b><a href="qdebug.html#maybeSpace">maybeSpace</a></b> ()</td></tr>
 
32
<tr><td class="memItemLeft" align="right" valign="top">QDebug &amp; </td><td class="memItemRight" valign="bottom"><b><a href="qdebug.html#nospace">nospace</a></b> ()</td></tr>
 
33
<tr><td class="memItemLeft" align="right" valign="top">QDebug &amp; </td><td class="memItemRight" valign="bottom"><b><a href="qdebug.html#space">space</a></b> ()</td></tr>
 
34
<tr><td class="memItemLeft" align="right" valign="top">QDebug &amp; </td><td class="memItemRight" valign="bottom"><b><a href="qdebug.html#operator-lt-lt">operator&lt;&lt;</a></b> ( QChar <i>t</i> )</td></tr>
 
35
<tr><td class="memItemLeft" align="right" valign="top">QDebug &amp; </td><td class="memItemRight" valign="bottom"><b><a href="qdebug.html#operator-lt-lt-3">operator&lt;&lt;</a></b> ( bool <i>t</i> )</td></tr>
 
36
<tr><td class="memItemLeft" align="right" valign="top">QDebug &amp; </td><td class="memItemRight" valign="bottom"><b><a href="qdebug.html#operator-lt-lt-4">operator&lt;&lt;</a></b> ( char <i>t</i> )</td></tr>
 
37
<tr><td class="memItemLeft" align="right" valign="top">QDebug &amp; </td><td class="memItemRight" valign="bottom"><b><a href="qdebug.html#operator-lt-lt-5">operator&lt;&lt;</a></b> ( signed short <i>i</i> )</td></tr>
 
38
<tr><td class="memItemLeft" align="right" valign="top">QDebug &amp; </td><td class="memItemRight" valign="bottom"><b><a href="qdebug.html#operator-lt-lt-6">operator&lt;&lt;</a></b> ( unsigned short <i>i</i> )</td></tr>
 
39
<tr><td class="memItemLeft" align="right" valign="top">QDebug &amp; </td><td class="memItemRight" valign="bottom"><b><a href="qdebug.html#operator-lt-lt-7">operator&lt;&lt;</a></b> ( signed int <i>i</i> )</td></tr>
 
40
<tr><td class="memItemLeft" align="right" valign="top">QDebug &amp; </td><td class="memItemRight" valign="bottom"><b><a href="qdebug.html#operator-lt-lt-8">operator&lt;&lt;</a></b> ( unsigned int <i>i</i> )</td></tr>
 
41
<tr><td class="memItemLeft" align="right" valign="top">QDebug &amp; </td><td class="memItemRight" valign="bottom"><b><a href="qdebug.html#operator-lt-lt-9">operator&lt;&lt;</a></b> ( signed long <i>l</i> )</td></tr>
 
42
<tr><td class="memItemLeft" align="right" valign="top">QDebug &amp; </td><td class="memItemRight" valign="bottom"><b><a href="qdebug.html#operator-lt-lt-10">operator&lt;&lt;</a></b> ( unsigned long <i>l</i> )</td></tr>
 
43
<tr><td class="memItemLeft" align="right" valign="top">QDebug &amp; </td><td class="memItemRight" valign="bottom"><b><a href="qdebug.html#operator-lt-lt-11">operator&lt;&lt;</a></b> ( qint64 <i>i</i> )</td></tr>
 
44
<tr><td class="memItemLeft" align="right" valign="top">QDebug &amp; </td><td class="memItemRight" valign="bottom"><b><a href="qdebug.html#operator-lt-lt-12">operator&lt;&lt;</a></b> ( quint64 <i>i</i> )</td></tr>
 
45
<tr><td class="memItemLeft" align="right" valign="top">QDebug &amp; </td><td class="memItemRight" valign="bottom"><b><a href="qdebug.html#operator-lt-lt-13">operator&lt;&lt;</a></b> ( float <i>f</i> )</td></tr>
 
46
<tr><td class="memItemLeft" align="right" valign="top">QDebug &amp; </td><td class="memItemRight" valign="bottom"><b><a href="qdebug.html#operator-lt-lt-14">operator&lt;&lt;</a></b> ( double <i>f</i> )</td></tr>
 
47
<tr><td class="memItemLeft" align="right" valign="top">QDebug &amp; </td><td class="memItemRight" valign="bottom"><b><a href="qdebug.html#operator-lt-lt-15">operator&lt;&lt;</a></b> ( const char * <i>s</i> )</td></tr>
 
48
<tr><td class="memItemLeft" align="right" valign="top">QDebug &amp; </td><td class="memItemRight" valign="bottom"><b><a href="qdebug.html#operator-lt-lt-16">operator&lt;&lt;</a></b> ( const QString &amp; <i>s</i> )</td></tr>
 
49
<tr><td class="memItemLeft" align="right" valign="top">QDebug &amp; </td><td class="memItemRight" valign="bottom"><b><a href="qdebug.html#operator-lt-lt-17">operator&lt;&lt;</a></b> ( const QStringRef &amp; <i>s</i> )</td></tr>
 
50
<tr><td class="memItemLeft" align="right" valign="top">QDebug &amp; </td><td class="memItemRight" valign="bottom"><b><a href="qdebug.html#operator-lt-lt-18">operator&lt;&lt;</a></b> ( const QLatin1String &amp; <i>s</i> )</td></tr>
 
51
<tr><td class="memItemLeft" align="right" valign="top">QDebug &amp; </td><td class="memItemRight" valign="bottom"><b><a href="qdebug.html#operator-lt-lt-19">operator&lt;&lt;</a></b> ( const QByteArray &amp; <i>b</i> )</td></tr>
 
52
<tr><td class="memItemLeft" align="right" valign="top">QDebug &amp; </td><td class="memItemRight" valign="bottom"><b><a href="qdebug.html#operator-lt-lt-20">operator&lt;&lt;</a></b> ( const void * <i>p</i> )</td></tr>
 
53
<tr><td class="memItemLeft" align="right" valign="top">QDebug &amp; </td><td class="memItemRight" valign="bottom"><b><a href="qdebug.html#operator-eq">operator=</a></b> ( const QDebug &amp; <i>other</i> )</td></tr>
 
54
</table>
53
55
<a name="details"></a>
54
56
<hr />
55
57
<h2>Detailed Description</h2>
75
77
<p>This is described in the <a href="debug.html">Debugging Techniques</a> and <a href="custom-types.html#making-the-type-printable">Creating Custom Qt Types</a> documents.</p>
76
78
<hr />
77
79
<h2>Member Function Documentation</h2>
 
80
<a name="//apple_ref/cpp/instm/QDebug/QDebug" />
78
81
<h3 class="fn"><a name="QDebugx"></a>QDebug::QDebug ( <a href="qiodevice.html">QIODevice</a> * <i>device</i> )</h3>
79
82
<p>Constructs a debug stream that writes to the given <i>device</i>.</p>
80
83
<h3 class="fn"><a name="QDebug-2"></a>QDebug::QDebug ( <a href="qstring.html">QString</a> * <i>string</i> )</h3>
83
86
<p>Constructs a debug stream that writes to the handler for the message type specified by <i>type</i>.</p>
84
87
<h3 class="fn"><a name="QDebug-4"></a>QDebug::QDebug ( const QDebug &amp; <i>other</i> )</h3>
85
88
<p>Constructs a copy of the <i>other</i> debug stream.</p>
 
89
<a name="//apple_ref/cpp/instm/QDebug/~QDebug" />
86
90
<h3 class="fn"><a name="dtor.QDebug"></a>QDebug::~QDebug ()</h3>
87
91
<p>Flushes any pending data to be written and destroys the debug stream.</p>
 
92
<a name="//apple_ref/cpp/instm/QDebug/maybeSpace" />
88
93
<h3 class="fn"><a name="maybeSpace"></a>QDebug &amp; QDebug::maybeSpace ()</h3>
89
94
<p>Writes a space character to the debug stream, depending on the last character sent to the stream, and returns a reference to the stream.</p>
90
95
<p>If the last character was a space character, this function writes a space character to the stream; otherwise, no characters are written to the stream.</p>
91
96
<p>See also <a href="qdebug.html#space">space</a>() and <a href="qdebug.html#nospace">nospace</a>().</p>
 
97
<a name="//apple_ref/cpp/instm/QDebug/nospace" />
92
98
<h3 class="fn"><a name="nospace"></a>QDebug &amp; QDebug::nospace ()</h3>
93
99
<p>Clears the stream's internal flag that records whether the last character was a space and returns a reference to the stream.</p>
94
100
<p>See also <a href="qdebug.html#space">space</a>() and <a href="qdebug.html#maybeSpace">maybeSpace</a>().</p>
 
101
<a name="//apple_ref/cpp/instm/QDebug/space" />
95
102
<h3 class="fn"><a name="space"></a>QDebug &amp; QDebug::space ()</h3>
96
103
<p>Writes a space character to the debug stream and returns a reference to the stream.</p>
97
104
<p>The stream will record that the last character sent to the stream was a space.</p>
98
105
<p>See also <a href="qdebug.html#nospace">nospace</a>() and <a href="qdebug.html#maybeSpace">maybeSpace</a>().</p>
 
106
<a name="//apple_ref/cpp/instm/QDebug/operator<<" />
99
107
<h3 class="fn"><a name="operator-lt-lt"></a>QDebug &amp; QDebug::operator&lt;&lt; ( <a href="qchar.html">QChar</a> <i>t</i> )</h3>
100
108
<p>Writes the character, <i>t</i>, to the stream and returns a reference to the stream.</p>
101
109
<h3 class="fn"><a name="operator-lt-lt-3"></a>QDebug &amp; QDebug::operator&lt;&lt; ( bool <i>t</i> )</h3>
134
142
<p>Writes the byte array, <i>b</i>, to the stream and returns a reference to the stream.</p>
135
143
<h3 class="fn"><a name="operator-lt-lt-20"></a>QDebug &amp; QDebug::operator&lt;&lt; ( const void * <i>p</i> )</h3>
136
144
<p>Writes a pointer, <i>p</i>, to the stream and returns a reference to the stream.</p>
 
145
<a name="//apple_ref/cpp/instm/QDebug/operator=" />
137
146
<h3 class="fn"><a name="operator-eq"></a>QDebug &amp; QDebug::operator= ( const QDebug &amp; <i>other</i> )</h3>
138
147
<p>Assigns the <i>other</i> debug stream to this stream and returns a reference to this stream.</p>
139
148
<p /><address><hr /><div align="center">
140
149
<table width="100%" cellspacing="0" border="0"><tr class="address">
141
 
<td width="30%" align="left">Copyright &copy; 2009 Nokia Corporation and/or its subsidiary(-ies)</td>
142
 
<td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td>
143
 
<td width="30%" align="right"><div align="right">Qt 4.5.2</div></td>
144
 
</tr></table></div></address></body>
 
150
<td width="40%" align="left">Copyright &copy; 2009 Nokia Corporation and/or its subsidiary(-ies)</td>
 
151
<td width="20%" align="center"><a href="trademarks.html">Trademarks</a></td>
 
152
<td width="40%" align="right"><div align="right">Qt 4.6.0</div></td>
 
153
<script type="text/javascript" src="http://www.google.com/jsapi"></script><script type="text/javascript">google.load("elements", "1", {packages: "transliteration"});</script><script type="text/javascript" src="http://www.google.com/coop/cse/t13n?form=cse-search-box&t13n_langs=en"></script><script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=cse-search-box&lang=en"></script></tr></table></div></address></body>
145
154
</html>