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
|
<?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" />
<!-- qdebug.cpp -->
<title>Qt 4.8: QDebug Class Reference</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>QDebug</li>
</ul>
</div>
</div>
<div class="content mainContent">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
<li class="level2"><a href="#basic-use">Basic Use</a></li>
<li class="level2"><a href="#writing-custom-types-to-a-stream">Writing Custom Types to a Stream</a></li>
</ul>
</div>
<h1 class="title">QDebug Class Reference</h1>
<!-- $$$QDebug-brief -->
<p>The QDebug class provides an output stream for debugging information. <a href="#details">More...</a></p>
<!-- @@@QDebug -->
<pre class="cpp"> <span class="preprocessor">#include <QDebug></span></pre><ul>
<li><a href="qdebug-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-functions"></a>
<h2>Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qdebug.html#QDebugx">QDebug</a></b> ( QIODevice * <i>device</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qdebug.html#QDebug-2">QDebug</a></b> ( QString * <i>string</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qdebug.html#QDebug-3">QDebug</a></b> ( QtMsgType <i>type</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qdebug.html#QDebug-4">QDebug</a></b> ( const QDebug & <i>other</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qdebug.html#dtor.QDebug">~QDebug</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDebug & </td><td class="memItemRight bottomAlign"><b><a href="qdebug.html#maybeSpace">maybeSpace</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDebug & </td><td class="memItemRight bottomAlign"><b><a href="qdebug.html#nospace">nospace</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDebug & </td><td class="memItemRight bottomAlign"><b><a href="qdebug.html#space">space</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDebug & </td><td class="memItemRight bottomAlign"><b><a href="qdebug.html#operator-lt-lt">operator<<</a></b> ( QChar <i>t</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDebug & </td><td class="memItemRight bottomAlign"><b><a href="qdebug.html#operator-lt-lt-3">operator<<</a></b> ( bool <i>t</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDebug & </td><td class="memItemRight bottomAlign"><b><a href="qdebug.html#operator-lt-lt-4">operator<<</a></b> ( char <i>t</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDebug & </td><td class="memItemRight bottomAlign"><b><a href="qdebug.html#operator-lt-lt-5">operator<<</a></b> ( signed short <i>i</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDebug & </td><td class="memItemRight bottomAlign"><b><a href="qdebug.html#operator-lt-lt-6">operator<<</a></b> ( unsigned short <i>i</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDebug & </td><td class="memItemRight bottomAlign"><b><a href="qdebug.html#operator-lt-lt-7">operator<<</a></b> ( signed int <i>i</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDebug & </td><td class="memItemRight bottomAlign"><b><a href="qdebug.html#operator-lt-lt-8">operator<<</a></b> ( unsigned int <i>i</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDebug & </td><td class="memItemRight bottomAlign"><b><a href="qdebug.html#operator-lt-lt-9">operator<<</a></b> ( signed long <i>l</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDebug & </td><td class="memItemRight bottomAlign"><b><a href="qdebug.html#operator-lt-lt-10">operator<<</a></b> ( unsigned long <i>l</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDebug & </td><td class="memItemRight bottomAlign"><b><a href="qdebug.html#operator-lt-lt-11">operator<<</a></b> ( qint64 <i>i</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDebug & </td><td class="memItemRight bottomAlign"><b><a href="qdebug.html#operator-lt-lt-12">operator<<</a></b> ( quint64 <i>i</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDebug & </td><td class="memItemRight bottomAlign"><b><a href="qdebug.html#operator-lt-lt-13">operator<<</a></b> ( float <i>f</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDebug & </td><td class="memItemRight bottomAlign"><b><a href="qdebug.html#operator-lt-lt-14">operator<<</a></b> ( double <i>f</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDebug & </td><td class="memItemRight bottomAlign"><b><a href="qdebug.html#operator-lt-lt-15">operator<<</a></b> ( const char * <i>s</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDebug & </td><td class="memItemRight bottomAlign"><b><a href="qdebug.html#operator-lt-lt-16">operator<<</a></b> ( const QString & <i>s</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDebug & </td><td class="memItemRight bottomAlign"><b><a href="qdebug.html#operator-lt-lt-17">operator<<</a></b> ( const QStringRef & <i>s</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDebug & </td><td class="memItemRight bottomAlign"><b><a href="qdebug.html#operator-lt-lt-18">operator<<</a></b> ( const QLatin1String & <i>s</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDebug & </td><td class="memItemRight bottomAlign"><b><a href="qdebug.html#operator-lt-lt-19">operator<<</a></b> ( const QByteArray & <i>b</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDebug & </td><td class="memItemRight bottomAlign"><b><a href="qdebug.html#operator-lt-lt-20">operator<<</a></b> ( const void * <i>p</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDebug & </td><td class="memItemRight bottomAlign"><b><a href="qdebug.html#operator-eq">operator=</a></b> ( const QDebug & <i>other</i> )</td></tr>
</table>
<a name="details"></a>
<!-- $$$QDebug-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The QDebug class provides an output stream for debugging information.</p>
<p>QDebug is used whenever the developer needs to write out debugging or tracing information to a device, file, string or console.</p>
<a name="basic-use"></a>
<h3>Basic Use</h3>
<p>In the common case, it is useful to call the <a href="qtglobal.html#qDebug">qDebug</a>() function to obtain a default QDebug object to use for writing debugging information.</p>
<pre class="cpp"> <a href="qtglobal.html#qDebug">qDebug</a>() <span class="operator"><</span><span class="operator"><</span> <span class="string">"Date:"</span> <span class="operator"><</span><span class="operator"><</span> <span class="type"><a href="qdate.html">QDate</a></span><span class="operator">::</span>currentDate();
<a href="qtglobal.html#qDebug">qDebug</a>() <span class="operator"><</span><span class="operator"><</span> <span class="string">"Types:"</span> <span class="operator"><</span><span class="operator"><</span> <span class="type"><a href="qstring.html">QString</a></span>(<span class="string">"String"</span>) <span class="operator"><</span><span class="operator"><</span> <span class="type"><a href="qchar.html">QChar</a></span>(<span class="char">'x'</span>) <span class="operator"><</span><span class="operator"><</span> <span class="type"><a href="qrect.html">QRect</a></span>(<span class="number">0</span><span class="operator">,</span> <span class="number">10</span><span class="operator">,</span> <span class="number">50</span><span class="operator">,</span> <span class="number">40</span>);
<a href="qtglobal.html#qDebug">qDebug</a>() <span class="operator"><</span><span class="operator"><</span> <span class="string">"Custom coordinate type:"</span> <span class="operator"><</span><span class="operator"><</span> coordinate;</pre>
<p>This constructs a QDebug object using the constructor that accepts a <a href="qtglobal.html#QtMsgType-enum">QtMsgType</a> value of <a href="qtglobal.html#QtMsgType-enum">QtDebugMsg</a>. Similarly, the <a href="qtglobal.html#qWarning">qWarning</a>(), <a href="qtglobal.html#qCritical">qCritical</a>() and <a href="qtglobal.html#qFatal">qFatal</a>() functions also return QDebug objects for the corresponding message types.</p>
<p>The class also provides several constructors for other situations, including a constructor that accepts a <a href="qfile.html">QFile</a> or any other <a href="qiodevice.html">QIODevice</a> subclass that is used to write debugging information to files and other devices. The constructor that accepts a <a href="qstring.html">QString</a> is used to write to a string for display or serialization.</p>
<a name="writing-custom-types-to-a-stream"></a>
<h3>Writing Custom Types to a Stream</h3>
<p>Many standard types can be written to QDebug objects, and Qt provides support for most Qt value types. To add support for custom types, you need to implement a streaming operator, as in the following example:</p>
<pre class="cpp"> <span class="type">QDebug</span> <span class="keyword">operator</span><span class="operator"><</span><span class="operator"><</span>(<span class="type">QDebug</span> dbg<span class="operator">,</span> <span class="keyword">const</span> Coordinate <span class="operator">&</span>c)
{
dbg<span class="operator">.</span>nospace() <span class="operator"><</span><span class="operator"><</span> <span class="string">"("</span> <span class="operator"><</span><span class="operator"><</span> c<span class="operator">.</span>x() <span class="operator"><</span><span class="operator"><</span> <span class="string">", "</span> <span class="operator"><</span><span class="operator"><</span> c<span class="operator">.</span>y() <span class="operator"><</span><span class="operator"><</span> <span class="string">")"</span>;
<span class="keyword">return</span> dbg<span class="operator">.</span>space();
}</pre>
<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>
</div>
<!-- @@@QDebug -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QDebug[overload1]$$$QDebugQIODevice* -->
<h3 class="fn"><a name="QDebugx"></a>QDebug::<span class="name">QDebug</span> ( <span class="type"><a href="qiodevice.html">QIODevice</a></span> * <i>device</i> )</h3>
<p>Constructs a debug stream that writes to the given <i>device</i>.</p>
<!-- @@@QDebug -->
<!-- $$$QDebug$$$QDebugQString* -->
<h3 class="fn"><a name="QDebug-2"></a>QDebug::<span class="name">QDebug</span> ( <span class="type"><a href="qstring.html">QString</a></span> * <i>string</i> )</h3>
<p>Constructs a debug stream that writes to the given <i>string</i>.</p>
<!-- @@@QDebug -->
<!-- $$$QDebug$$$QDebugQtMsgType -->
<h3 class="fn"><a name="QDebug-3"></a>QDebug::<span class="name">QDebug</span> ( <span class="type"><a href="qtglobal.html#QtMsgType-enum">QtMsgType</a></span> <i>type</i> )</h3>
<p>Constructs a debug stream that writes to the handler for the message type specified by <i>type</i>.</p>
<!-- @@@QDebug -->
<!-- $$$QDebug$$$QDebugconstQDebug& -->
<h3 class="fn"><a name="QDebug-4"></a>QDebug::<span class="name">QDebug</span> ( const <span class="type">QDebug</span> & <i>other</i> )</h3>
<p>Constructs a copy of the <i>other</i> debug stream.</p>
<!-- @@@QDebug -->
<!-- $$$~QDebug[overload1]$$$~QDebug -->
<h3 class="fn"><a name="dtor.QDebug"></a>QDebug::<span class="name">~QDebug</span> ()</h3>
<p>Flushes any pending data to be written and destroys the debug stream.</p>
<!-- @@@~QDebug -->
<!-- $$$maybeSpace[overload1]$$$maybeSpace -->
<h3 class="fn"><a name="maybeSpace"></a><span class="type">QDebug</span> & QDebug::<span class="name">maybeSpace</span> ()</h3>
<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>
<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>
<p><b>See also </b><a href="qdebug.html#space">space</a>() and <a href="qdebug.html#nospace">nospace</a>().</p>
<!-- @@@maybeSpace -->
<!-- $$$nospace[overload1]$$$nospace -->
<h3 class="fn"><a name="nospace"></a><span class="type">QDebug</span> & QDebug::<span class="name">nospace</span> ()</h3>
<p>Clears the stream's internal flag that records whether the last character was a space and returns a reference to the stream.</p>
<p><b>See also </b><a href="qdebug.html#space">space</a>() and <a href="qdebug.html#maybeSpace">maybeSpace</a>().</p>
<!-- @@@nospace -->
<!-- $$$space[overload1]$$$space -->
<h3 class="fn"><a name="space"></a><span class="type">QDebug</span> & QDebug::<span class="name">space</span> ()</h3>
<p>Writes a space character to the debug stream and returns a reference to the stream.</p>
<p>The stream will record that the last character sent to the stream was a space.</p>
<p><b>See also </b><a href="qdebug.html#nospace">nospace</a>() and <a href="qdebug.html#maybeSpace">maybeSpace</a>().</p>
<!-- @@@space -->
<!-- $$$operator<<[overload1]$$$operator<<QChar -->
<h3 class="fn"><a name="operator-lt-lt"></a><span class="type">QDebug</span> & QDebug::<span class="name">operator<<</span> ( <span class="type"><a href="qchar.html">QChar</a></span> <i>t</i> )</h3>
<p>Writes the character, <i>t</i>, to the stream and returns a reference to the stream.</p>
<!-- @@@operator<< -->
<!-- $$$operator<<$$$operator<<bool -->
<h3 class="fn"><a name="operator-lt-lt-3"></a><span class="type">QDebug</span> & QDebug::<span class="name">operator<<</span> ( <span class="type">bool</span> <i>t</i> )</h3>
<p>Writes the boolean value, <i>t</i>, to the stream and returns a reference to the stream.</p>
<!-- @@@operator<< -->
<!-- $$$operator<<$$$operator<<char -->
<h3 class="fn"><a name="operator-lt-lt-4"></a><span class="type">QDebug</span> & QDebug::<span class="name">operator<<</span> ( <span class="type">char</span> <i>t</i> )</h3>
<p>Writes the character, <i>t</i>, to the stream and returns a reference to the stream.</p>
<!-- @@@operator<< -->
<!-- $$$operator<<$$$operator<<signedshort -->
<h3 class="fn"><a name="operator-lt-lt-5"></a><span class="type">QDebug</span> & QDebug::<span class="name">operator<<</span> ( <span class="type">signed</span> <span class="type">short</span> <i>i</i> )</h3>
<p>Writes the signed short integer, <i>i</i>, to the stream and returns a reference to the stream.</p>
<!-- @@@operator<< -->
<!-- $$$operator<<$$$operator<<unsignedshort -->
<h3 class="fn"><a name="operator-lt-lt-6"></a><span class="type">QDebug</span> & QDebug::<span class="name">operator<<</span> ( <span class="type">unsigned</span> <span class="type">short</span> <i>i</i> )</h3>
<p>Writes then unsigned short integer, <i>i</i>, to the stream and returns a reference to the stream.</p>
<!-- @@@operator<< -->
<!-- $$$operator<<$$$operator<<signedint -->
<h3 class="fn"><a name="operator-lt-lt-7"></a><span class="type">QDebug</span> & QDebug::<span class="name">operator<<</span> ( <span class="type">signed</span> <span class="type">int</span> <i>i</i> )</h3>
<p>Writes the signed integer, <i>i</i>, to the stream and returns a reference to the stream.</p>
<!-- @@@operator<< -->
<!-- $$$operator<<$$$operator<<unsignedint -->
<h3 class="fn"><a name="operator-lt-lt-8"></a><span class="type">QDebug</span> & QDebug::<span class="name">operator<<</span> ( <span class="type">unsigned</span> <span class="type">int</span> <i>i</i> )</h3>
<p>Writes then unsigned integer, <i>i</i>, to the stream and returns a reference to the stream.</p>
<!-- @@@operator<< -->
<!-- $$$operator<<$$$operator<<signedlong -->
<h3 class="fn"><a name="operator-lt-lt-9"></a><span class="type">QDebug</span> & QDebug::<span class="name">operator<<</span> ( <span class="type">signed</span> <span class="type">long</span> <i>l</i> )</h3>
<p>Writes the signed long integer, <i>l</i>, to the stream and returns a reference to the stream.</p>
<!-- @@@operator<< -->
<!-- $$$operator<<$$$operator<<unsignedlong -->
<h3 class="fn"><a name="operator-lt-lt-10"></a><span class="type">QDebug</span> & QDebug::<span class="name">operator<<</span> ( <span class="type">unsigned</span> <span class="type">long</span> <i>l</i> )</h3>
<p>Writes then unsigned long integer, <i>l</i>, to the stream and returns a reference to the stream.</p>
<!-- @@@operator<< -->
<!-- $$$operator<<$$$operator<<qint64 -->
<h3 class="fn"><a name="operator-lt-lt-11"></a><span class="type">QDebug</span> & QDebug::<span class="name">operator<<</span> ( <span class="type"><a href="qtglobal.html#qint64-typedef">qint64</a></span> <i>i</i> )</h3>
<p>Writes the signed 64-bit integer, <i>i</i>, to the stream and returns a reference to the stream.</p>
<!-- @@@operator<< -->
<!-- $$$operator<<$$$operator<<quint64 -->
<h3 class="fn"><a name="operator-lt-lt-12"></a><span class="type">QDebug</span> & QDebug::<span class="name">operator<<</span> ( <span class="type"><a href="qtglobal.html#quint64-typedef">quint64</a></span> <i>i</i> )</h3>
<p>Writes then unsigned 64-bit integer, <i>i</i>, to the stream and returns a reference to the stream.</p>
<!-- @@@operator<< -->
<!-- $$$operator<<$$$operator<<float -->
<h3 class="fn"><a name="operator-lt-lt-13"></a><span class="type">QDebug</span> & QDebug::<span class="name">operator<<</span> ( <span class="type">float</span> <i>f</i> )</h3>
<p>Writes the 32-bit floating point number, <i>f</i>, to the stream and returns a reference to the stream.</p>
<!-- @@@operator<< -->
<!-- $$$operator<<$$$operator<<double -->
<h3 class="fn"><a name="operator-lt-lt-14"></a><span class="type">QDebug</span> & QDebug::<span class="name">operator<<</span> ( <span class="type">double</span> <i>f</i> )</h3>
<p>Writes the 64-bit floating point number, <i>f</i>, to the stream and returns a reference to the stream.</p>
<!-- @@@operator<< -->
<!-- $$$operator<<$$$operator<<constchar* -->
<h3 class="fn"><a name="operator-lt-lt-15"></a><span class="type">QDebug</span> & QDebug::<span class="name">operator<<</span> ( const <span class="type">char</span> * <i>s</i> )</h3>
<p>Writes the '\0'-terminated string, <i>s</i>, to the stream and returns a reference to the stream.</p>
<!-- @@@operator<< -->
<!-- $$$operator<<$$$operator<<constQString& -->
<h3 class="fn"><a name="operator-lt-lt-16"></a><span class="type">QDebug</span> & QDebug::<span class="name">operator<<</span> ( const <span class="type"><a href="qstring.html">QString</a></span> & <i>s</i> )</h3>
<p>Writes the string, <i>s</i>, to the stream and returns a reference to the stream.</p>
<!-- @@@operator<< -->
<!-- $$$operator<<$$$operator<<constQStringRef& -->
<h3 class="fn"><a name="operator-lt-lt-17"></a><span class="type">QDebug</span> & QDebug::<span class="name">operator<<</span> ( const <span class="type"><a href="qstringref.html">QStringRef</a></span> & <i>s</i> )</h3>
<p>Writes the string reference, <i>s</i>, to the stream and returns a reference to the stream.</p>
<!-- @@@operator<< -->
<!-- $$$operator<<$$$operator<<constQLatin1String& -->
<h3 class="fn"><a name="operator-lt-lt-18"></a><span class="type">QDebug</span> & QDebug::<span class="name">operator<<</span> ( const <span class="type"><a href="qlatin1string.html">QLatin1String</a></span> & <i>s</i> )</h3>
<p>Writes the Latin1-encoded string, <i>s</i>, to the stream and returns a reference to the stream.</p>
<!-- @@@operator<< -->
<!-- $$$operator<<$$$operator<<constQByteArray& -->
<h3 class="fn"><a name="operator-lt-lt-19"></a><span class="type">QDebug</span> & QDebug::<span class="name">operator<<</span> ( const <span class="type"><a href="qbytearray.html">QByteArray</a></span> & <i>b</i> )</h3>
<p>Writes the byte array, <i>b</i>, to the stream and returns a reference to the stream.</p>
<!-- @@@operator<< -->
<!-- $$$operator<<$$$operator<<constvoid* -->
<h3 class="fn"><a name="operator-lt-lt-20"></a><span class="type">QDebug</span> & QDebug::<span class="name">operator<<</span> ( const <span class="type">void</span> * <i>p</i> )</h3>
<p>Writes a pointer, <i>p</i>, to the stream and returns a reference to the stream.</p>
<!-- @@@operator<< -->
<!-- $$$operator=[overload1]$$$operator=constQDebug& -->
<h3 class="fn"><a name="operator-eq"></a><span class="type">QDebug</span> & QDebug::<span class="name">operator=</span> ( const <span class="type">QDebug</span> & <i>other</i> )</h3>
<p>Assigns the <i>other</i> debug stream to this stream and returns a reference to this stream.</p>
<!-- @@@operator= -->
</div>
<div class="ft">
<span></span>
</div>
</div>
<div class="footer">
<p>
<acronym title="Copyright">©</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>
|