Files
qt4-x11/doc/html/qdebug.html
2025-08-24 20:55:26 +08:00

395 lines
30 KiB
HTML

<?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/style.css" />
<script src="scripts/jquery.js" type="text/javascript"></script>
<script src="scripts/functions.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="style/superfish.css" />
<link rel="stylesheet" type="text/css" href="style/narrow.css" />
<!--[if IE]>
<meta name="MSSmartTagsPreventParsing" content="true">
<meta http-equiv="imagetoolbar" content="no">
<![endif]-->
<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" href="style/style_ie6.css">
<![endif]-->
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="style/style_ie7.css">
<![endif]-->
<!--[if IE 8]>
<link rel="stylesheet" type="text/css" href="style/style_ie8.css">
<![endif]-->
<script src="scripts/superfish.js" type="text/javascript"></script>
<script src="scripts/narrow.js" type="text/javascript"></script>
</head>
<body class="" onload="CheckEmptyAndLoadList();">
<div class="header" id="qtdocheader">
<div class="content">
<div id="nav-logo">
<a href="index.html">Home</a></div>
<a href="index.html" class="qtref"><span>Qt Reference Documentation</span></a>
<div id="narrowsearch"></div>
<div id="nav-topright">
<ul>
<li class="nav-topright-home"><a href="http://qt.digia.com/">Qt HOME</a></li>
<li class="nav-topright-dev"><a href="http://qt-project.org/">DEV</a></li>
<li class="nav-topright-doc nav-topright-doc-active"><a href="http://qt-project.org/doc/">
DOC</a></li>
<li class="nav-topright-blog"><a href="http://blog.qt.digia.com/">BLOG</a></li>
</ul>
</div>
<div id="shortCut">
<ul>
<li class="shortCut-topleft-inactive"><span><a href="index.html">Qt 4.8</a></span></li>
<li class="shortCut-topleft-active"><a href="http://qt-project.org/doc/">ALL VERSIONS </a></li>
</ul>
</div>
<ul class="sf-menu" id="narrowmenu">
<li><a href="#">API Lookup</a>
<ul>
<li><a href="classes.html">Class index</a></li>
<li><a href="functions.html">Function index</a></li>
<li><a href="modules.html">Modules</a></li>
<li><a href="namespaces.html">Namespaces</a></li>
<li><a href="qtglobal.html">Global Declarations</a></li>
<li><a href="qdeclarativeelements.html">QML elements</a></li>
</ul>
</li>
<li><a href="#">Qt Topics</a>
<ul>
<li><a href="qt-basic-concepts.html">Programming with Qt</a></li>
<li><a href="qtquick.html">Device UIs &amp; Qt Quick</a></li>
<li><a href="qt-gui-concepts.html">UI Design with Qt</a></li>
<li><a href="supported-platforms.html">Supported Platforms</a></li>
<li><a href="technology-apis.html">Qt and Key Technologies</a></li>
<li><a href="best-practices.html">How-To's and Best Practices</a></li>
</ul>
</li>
<li><a href="#">Examples</a>
<ul>
<li><a href="all-examples.html">Examples</a></li>
<li><a href="tutorials.html">Tutorials</a></li>
<li><a href="demos.html">Demos</a></li>
<li><a href="qdeclarativeexamples.html">QML Examples</a></li>
</ul>
</li>
</ul>
</div>
</div>
<div class="wrapper">
<div class="hd">
<span></span>
</div>
<div class="bd group">
<div class="sidebar">
<div class="searchlabel">
Search index:</div>
<div class="search" id="sidebarsearch">
<form id="qtdocsearch" action="" onsubmit="return false;">
<fieldset>
<input type="text" name="searchstring" id="pageType" value="" />
<div id="resultdialog">
<a href="#" id="resultclose">Close</a>
<p id="resultlinks" class="all"><a href="#" id="showallresults">All</a> | <a href="#" id="showapiresults">API</a> | <a href="#" id="showarticleresults">Articles</a> | <a href="#" id="showexampleresults">Examples</a></p>
<p id="searchcount" class="all"><span id="resultcount"></span><span id="apicount"></span><span id="articlecount"></span><span id="examplecount"></span>&nbsp;results:</p>
<ul id="resultlist" class="all">
</ul>
</div>
</fieldset>
</form>
</div>
<div class="box first bottombar" id="lookup">
<h2 title="API Lookup"><span></span>
API Lookup</h2>
<div id="list001" class="list">
<ul id="ul001" >
<li class="defaultLink"><a href="classes.html">Class index</a></li>
<li class="defaultLink"><a href="functions.html">Function index</a></li>
<li class="defaultLink"><a href="modules.html">Modules</a></li>
<li class="defaultLink"><a href="namespaces.html">Namespaces</a></li>
<li class="defaultLink"><a href="qtglobal.html">Global Declarations</a></li>
<li class="defaultLink"><a href="qdeclarativeelements.html">QML elements</a></li>
</ul>
</div>
</div>
<div class="box bottombar" id="topics">
<h2 title="Qt Topics"><span></span>
Qt Topics</h2>
<div id="list002" class="list">
<ul id="ul002" >
<li class="defaultLink"><a href="qt-basic-concepts.html">Programming with Qt</a></li>
<li class="defaultLink"><a href="qtquick.html">Device UIs &amp; Qt Quick</a></li>
<li class="defaultLink"><a href="qt-gui-concepts.html">UI Design with Qt</a></li>
<li class="defaultLink"><a href="supported-platforms.html">Supported Platforms</a></li>
<li class="defaultLink"><a href="technology-apis.html">Qt and Key Technologies</a></li>
<li class="defaultLink"><a href="best-practices.html">How-To's and Best Practices</a></li>
</ul>
</div>
</div>
<div class="box" id="examples">
<h2 title="Examples"><span></span>
Examples</h2>
<div id="list003" class="list">
<ul id="ul003">
<li class="defaultLink"><a href="all-examples.html">Examples</a></li>
<li class="defaultLink"><a href="tutorials.html">Tutorials</a></li>
<li class="defaultLink"><a href="demos.html">Demos</a></li>
<li class="defaultLink"><a href="qdeclarativeexamples.html">QML Examples</a></li>
</ul>
</div>
</div>
</div>
<div class="wrap">
<div class="toolbar">
<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 class="toolbuttons toolblock">
<ul>
<li id="smallA" class="t_button">A</li>
<li id="medA" class="t_button active">A</li>
<li id="bigA" class="t_button">A</li>
<li id="print" class="t_button"><a href="javascript:this.print();">
<span>Print</span></a></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 &lt;QDebug&gt;</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 &amp; <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 &amp; </td><td class="memItemRight bottomAlign"><b><a href="qdebug.html#maybeSpace">maybeSpace</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDebug &amp; </td><td class="memItemRight bottomAlign"><b><a href="qdebug.html#nospace">nospace</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDebug &amp; </td><td class="memItemRight bottomAlign"><b><a href="qdebug.html#space">space</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDebug &amp; </td><td class="memItemRight bottomAlign"><b><a href="qdebug.html#operator-lt-lt">operator&lt;&lt;</a></b> ( QChar <i>t</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDebug &amp; </td><td class="memItemRight bottomAlign"><b><a href="qdebug.html#operator-lt-lt-3">operator&lt;&lt;</a></b> ( bool <i>t</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDebug &amp; </td><td class="memItemRight bottomAlign"><b><a href="qdebug.html#operator-lt-lt-4">operator&lt;&lt;</a></b> ( char <i>t</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDebug &amp; </td><td class="memItemRight bottomAlign"><b><a href="qdebug.html#operator-lt-lt-5">operator&lt;&lt;</a></b> ( signed short <i>i</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDebug &amp; </td><td class="memItemRight bottomAlign"><b><a href="qdebug.html#operator-lt-lt-6">operator&lt;&lt;</a></b> ( unsigned short <i>i</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDebug &amp; </td><td class="memItemRight bottomAlign"><b><a href="qdebug.html#operator-lt-lt-7">operator&lt;&lt;</a></b> ( signed int <i>i</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDebug &amp; </td><td class="memItemRight bottomAlign"><b><a href="qdebug.html#operator-lt-lt-8">operator&lt;&lt;</a></b> ( unsigned int <i>i</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDebug &amp; </td><td class="memItemRight bottomAlign"><b><a href="qdebug.html#operator-lt-lt-9">operator&lt;&lt;</a></b> ( signed long <i>l</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDebug &amp; </td><td class="memItemRight bottomAlign"><b><a href="qdebug.html#operator-lt-lt-10">operator&lt;&lt;</a></b> ( unsigned long <i>l</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDebug &amp; </td><td class="memItemRight bottomAlign"><b><a href="qdebug.html#operator-lt-lt-11">operator&lt;&lt;</a></b> ( qint64 <i>i</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDebug &amp; </td><td class="memItemRight bottomAlign"><b><a href="qdebug.html#operator-lt-lt-12">operator&lt;&lt;</a></b> ( quint64 <i>i</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDebug &amp; </td><td class="memItemRight bottomAlign"><b><a href="qdebug.html#operator-lt-lt-13">operator&lt;&lt;</a></b> ( float <i>f</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDebug &amp; </td><td class="memItemRight bottomAlign"><b><a href="qdebug.html#operator-lt-lt-14">operator&lt;&lt;</a></b> ( double <i>f</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDebug &amp; </td><td class="memItemRight bottomAlign"><b><a href="qdebug.html#operator-lt-lt-15">operator&lt;&lt;</a></b> ( const char * <i>s</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDebug &amp; </td><td class="memItemRight bottomAlign"><b><a href="qdebug.html#operator-lt-lt-16">operator&lt;&lt;</a></b> ( const QString &amp; <i>s</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDebug &amp; </td><td class="memItemRight bottomAlign"><b><a href="qdebug.html#operator-lt-lt-17">operator&lt;&lt;</a></b> ( const QStringRef &amp; <i>s</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDebug &amp; </td><td class="memItemRight bottomAlign"><b><a href="qdebug.html#operator-lt-lt-18">operator&lt;&lt;</a></b> ( const QLatin1String &amp; <i>s</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDebug &amp; </td><td class="memItemRight bottomAlign"><b><a href="qdebug.html#operator-lt-lt-19">operator&lt;&lt;</a></b> ( const QByteArray &amp; <i>b</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDebug &amp; </td><td class="memItemRight bottomAlign"><b><a href="qdebug.html#operator-lt-lt-20">operator&lt;&lt;</a></b> ( const void * <i>p</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDebug &amp; </td><td class="memItemRight bottomAlign"><b><a href="qdebug.html#operator-eq">operator=</a></b> ( const QDebug &amp; <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">&lt;</span><span class="operator">&lt;</span> <span class="string">&quot;Date:&quot;</span> <span class="operator">&lt;</span><span class="operator">&lt;</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">&lt;</span><span class="operator">&lt;</span> <span class="string">&quot;Types:&quot;</span> <span class="operator">&lt;</span><span class="operator">&lt;</span> <span class="type"><a href="qstring.html">QString</a></span>(<span class="string">&quot;String&quot;</span>) <span class="operator">&lt;</span><span class="operator">&lt;</span> <span class="type"><a href="qchar.html">QChar</a></span>(<span class="char">'x'</span>) <span class="operator">&lt;</span><span class="operator">&lt;</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">&lt;</span><span class="operator">&lt;</span> <span class="string">&quot;Custom coordinate type:&quot;</span> <span class="operator">&lt;</span><span class="operator">&lt;</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">&lt;</span><span class="operator">&lt;</span>(<span class="type">QDebug</span> dbg<span class="operator">,</span> <span class="keyword">const</span> Coordinate <span class="operator">&amp;</span>c)
{
dbg<span class="operator">.</span>nospace() <span class="operator">&lt;</span><span class="operator">&lt;</span> <span class="string">&quot;(&quot;</span> <span class="operator">&lt;</span><span class="operator">&lt;</span> c<span class="operator">.</span>x() <span class="operator">&lt;</span><span class="operator">&lt;</span> <span class="string">&quot;, &quot;</span> <span class="operator">&lt;</span><span class="operator">&lt;</span> c<span class="operator">.</span>y() <span class="operator">&lt;</span><span class="operator">&lt;</span> <span class="string">&quot;)&quot;</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> &amp; <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> &amp; 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> &amp; 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> &amp; 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> &amp; QDebug::<span class="name">operator&lt;&lt;</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> &amp; QDebug::<span class="name">operator&lt;&lt;</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> &amp; QDebug::<span class="name">operator&lt;&lt;</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> &amp; QDebug::<span class="name">operator&lt;&lt;</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> &amp; QDebug::<span class="name">operator&lt;&lt;</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> &amp; QDebug::<span class="name">operator&lt;&lt;</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> &amp; QDebug::<span class="name">operator&lt;&lt;</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> &amp; QDebug::<span class="name">operator&lt;&lt;</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> &amp; QDebug::<span class="name">operator&lt;&lt;</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> &amp; QDebug::<span class="name">operator&lt;&lt;</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> &amp; QDebug::<span class="name">operator&lt;&lt;</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> &amp; QDebug::<span class="name">operator&lt;&lt;</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> &amp; QDebug::<span class="name">operator&lt;&lt;</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> &amp; QDebug::<span class="name">operator&lt;&lt;</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> &amp; QDebug::<span class="name">operator&lt;&lt;</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <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> &amp; QDebug::<span class="name">operator&lt;&lt;</span> ( const <span class="type"><a href="qstringref.html">QStringRef</a></span> &amp; <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> &amp; QDebug::<span class="name">operator&lt;&lt;</span> ( const <span class="type"><a href="qlatin1string.html">QLatin1String</a></span> &amp; <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> &amp; QDebug::<span class="name">operator&lt;&lt;</span> ( const <span class="type"><a href="qbytearray.html">QByteArray</a></span> &amp; <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> &amp; QDebug::<span class="name">operator&lt;&lt;</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> &amp; QDebug::<span class="name">operator=</span> ( const <span class="type">QDebug</span> &amp; <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>
</div>
</div>
<div class="ft">
<span></span>
</div>
</div>
<div class="footer">
<p>
<acronym title="Copyright">&copy;</acronym> 2015 The Qt Company Ltd.
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>
Qt and respective logos are trademarks of The Qt Company Ltd
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>
<script src="scripts/functions.js" type="text/javascript"></script>
</body>
</html>