<?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" /> <!-- qline.cpp --> <title>Qt 4.8: QLine 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 & 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> 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 & 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>QLine</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="#related-non-members">Related Non-Members</a></li> <li class="level1"><a href="#details">Detailed Description</a></li> </ul> </div> <h1 class="title">QLine Class Reference</h1> <!-- $$$QLine-brief --> <p>The QLine class provides a two-dimensional vector using integer precision. <a href="#details">More...</a></p> <!-- @@@QLine --> <pre class="cpp"> <span class="preprocessor">#include <QLine></span></pre><ul> <li><a href="qline-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="qline.html#QLine">QLine</a></b> ()</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qline.html#QLine-2">QLine</a></b> ( const QPoint & <i>p1</i>, const QPoint & <i>p2</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qline.html#QLine-3">QLine</a></b> ( int <i>x1</i>, int <i>y1</i>, int <i>x2</i>, int <i>y2</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QPoint </td><td class="memItemRight bottomAlign"><b><a href="qline.html#p1">p1</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QPoint </td><td class="memItemRight bottomAlign"><b><a href="qline.html#p2">p2</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qline.html#x1">x1</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qline.html#x2">x2</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qline.html#y1">y1</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qline.html#y2">y2</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qline.html#dx">dx</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qline.html#dy">dy</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qline.html#isNull">isNull</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qline.html#setP1">setP1</a></b> ( const QPoint & <i>p1</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qline.html#setP2">setP2</a></b> ( const QPoint & <i>p2</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qline.html#setLine">setLine</a></b> ( int <i>x1</i>, int <i>y1</i>, int <i>x2</i>, int <i>y2</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qline.html#setPoints">setPoints</a></b> ( const QPoint & <i>p1</i>, const QPoint & <i>p2</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qline.html#translate">translate</a></b> ( const QPoint & <i>offset</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qline.html#translate-2">translate</a></b> ( int <i>dx</i>, int <i>dy</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QLine </td><td class="memItemRight bottomAlign"><b><a href="qline.html#translated">translated</a></b> ( const QPoint & <i>offset</i> ) const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QLine </td><td class="memItemRight bottomAlign"><b><a href="qline.html#translated-2">translated</a></b> ( int <i>dx</i>, int <i>dy</i> ) const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qline.html#operator-not-eq">operator!=</a></b> ( const QLine & <i>line</i> ) const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qline.html#operator-eq-eq">operator==</a></b> ( const QLine & <i>line</i> ) const</td></tr> </table> <a name="related-non-members"></a> <h2>Related Non-Members</h2> <table class="alignedsummary"> <tr><td class="memItemLeft rightAlign topAlign"> QDataStream & </td><td class="memItemRight bottomAlign"><b><a href="qline.html#operator-lt-lt-49">operator<<</a></b> ( QDataStream & <i>stream</i>, const QLine & <i>line</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QDataStream & </td><td class="memItemRight bottomAlign"><b><a href="qline.html#operator-gt-gt-32">operator>></a></b> ( QDataStream & <i>stream</i>, QLine & <i>line</i> )</td></tr> </table> <a name="details"></a> <!-- $$$QLine-description --> <div class="descr"> <h2>Detailed Description</h2> <p>The QLine class provides a two-dimensional vector using integer precision.</p> <p>A QLine describes a finite length line (or a line segment) on a two-dimensional surface. The start and end points of the line are specified using integer point accuracy for coordinates. Use the <a href="qlinef.html">QLineF</a> constructor to retrieve a floating point copy.</p> <table class="generic"> <tr valign="top" class="odd"><td ><img src="images/qline-point.png" alt="" /></td><td ><img src="images/qline-coordinates.png" alt="" /></td></tr> </table> <p>The positions of the line's start and end points can be retrieved using the <a href="qline.html#p1">p1</a>(), <a href="qline.html#x1">x1</a>(), <a href="qline.html#y1">y1</a>(), <a href="qline.html#p2">p2</a>(), <a href="qline.html#x2">x2</a>(), and <a href="qline.html#y2">y2</a>() functions. The <a href="qline.html#dx">dx</a>() and <a href="qline.html#dy">dy</a>() functions return the horizontal and vertical components of the line. Use <a href="qline.html#isNull">isNull</a>() to determine whether the QLine represents a valid line or a null line.</p> <p>Finally, the line can be translated a given offset using the <a href="qline.html#translate">translate</a>() function.</p> </div> <p><b>See also </b><a href="qlinef.html">QLineF</a>, <a href="qpolygon.html">QPolygon</a>, and <a href="qrect.html">QRect</a>.</p> <!-- @@@QLine --> <div class="func"> <h2>Member Function Documentation</h2> <!-- $$$QLine[overload1]$$$QLine --> <h3 class="fn"><a name="QLine"></a>QLine::<span class="name">QLine</span> ()</h3> <p>Constructs a null line.</p> <!-- @@@QLine --> <!-- $$$QLine$$$QLineconstQPoint&constQPoint& --> <h3 class="fn"><a name="QLine-2"></a>QLine::<span class="name">QLine</span> ( const <span class="type"><a href="qpoint.html">QPoint</a></span> & <i>p1</i>, const <span class="type"><a href="qpoint.html">QPoint</a></span> & <i>p2</i> )</h3> <p>Constructs a line object that represents the line between <i>p1</i> and <i>p2</i>.</p> <!-- @@@QLine --> <!-- $$$QLine$$$QLineintintintint --> <h3 class="fn"><a name="QLine-3"></a>QLine::<span class="name">QLine</span> ( <span class="type">int</span> <i>x1</i>, <span class="type">int</span> <i>y1</i>, <span class="type">int</span> <i>x2</i>, <span class="type">int</span> <i>y2</i> )</h3> <p>Constructs a line object that represents the line between (<i>x1</i>, <i>y1</i>) and (<i>x2</i>, <i>y2</i>).</p> <!-- @@@QLine --> <!-- $$$p1[overload1]$$$p1 --> <h3 class="fn"><a name="p1"></a><span class="type"><a href="qpoint.html">QPoint</a></span> QLine::<span class="name">p1</span> () const</h3> <p>Returns the line's start point.</p> <p><b>See also </b><a href="qline.html#setP1">setP1</a>(), <a href="qline.html#x1">x1</a>(), <a href="qline.html#y1">y1</a>(), and <a href="qline.html#p2">p2</a>().</p> <!-- @@@p1 --> <!-- $$$p2[overload1]$$$p2 --> <h3 class="fn"><a name="p2"></a><span class="type"><a href="qpoint.html">QPoint</a></span> QLine::<span class="name">p2</span> () const</h3> <p>Returns the line's end point.</p> <p><b>See also </b><a href="qline.html#setP2">setP2</a>(), <a href="qline.html#x2">x2</a>(), <a href="qline.html#y2">y2</a>(), and <a href="qline.html#p1">p1</a>().</p> <!-- @@@p2 --> <!-- $$$x1[overload1]$$$x1 --> <h3 class="fn"><a name="x1"></a><span class="type">int</span> QLine::<span class="name">x1</span> () const</h3> <p>Returns the x-coordinate of the line's start point.</p> <p><b>See also </b><a href="qline.html#p1">p1</a>().</p> <!-- @@@x1 --> <!-- $$$x2[overload1]$$$x2 --> <h3 class="fn"><a name="x2"></a><span class="type">int</span> QLine::<span class="name">x2</span> () const</h3> <p>Returns the x-coordinate of the line's end point.</p> <p><b>See also </b><a href="qline.html#p2">p2</a>().</p> <!-- @@@x2 --> <!-- $$$y1[overload1]$$$y1 --> <h3 class="fn"><a name="y1"></a><span class="type">int</span> QLine::<span class="name">y1</span> () const</h3> <p>Returns the y-coordinate of the line's start point.</p> <p><b>See also </b><a href="qline.html#p1">p1</a>().</p> <!-- @@@y1 --> <!-- $$$y2[overload1]$$$y2 --> <h3 class="fn"><a name="y2"></a><span class="type">int</span> QLine::<span class="name">y2</span> () const</h3> <p>Returns the y-coordinate of the line's end point.</p> <p><b>See also </b><a href="qline.html#p2">p2</a>().</p> <!-- @@@y2 --> <!-- $$$dx[overload1]$$$dx --> <h3 class="fn"><a name="dx"></a><span class="type">int</span> QLine::<span class="name">dx</span> () const</h3> <p>Returns the horizontal component of the line's vector.</p> <p><b>See also </b><a href="qline.html#dy">dy</a>().</p> <!-- @@@dx --> <!-- $$$dy[overload1]$$$dy --> <h3 class="fn"><a name="dy"></a><span class="type">int</span> QLine::<span class="name">dy</span> () const</h3> <p>Returns the vertical component of the line's vector.</p> <p><b>See also </b><a href="qline.html#dx">dx</a>().</p> <!-- @@@dy --> <!-- $$$isNull[overload1]$$$isNull --> <h3 class="fn"><a name="isNull"></a><span class="type">bool</span> QLine::<span class="name">isNull</span> () const</h3> <p>Returns true if the line is not set up with valid start and end point; otherwise returns false.</p> <!-- @@@isNull --> <!-- $$$setP1[overload1]$$$setP1constQPoint& --> <h3 class="fn"><a name="setP1"></a><span class="type">void</span> QLine::<span class="name">setP1</span> ( const <span class="type"><a href="qpoint.html">QPoint</a></span> & <i>p1</i> )</h3> <p>Sets the starting point of this line to <i>p1</i>.</p> <p>This function was introduced in Qt 4.4.</p> <p><b>See also </b><a href="qline.html#setP2">setP2</a>() and <a href="qline.html#p1">p1</a>().</p> <!-- @@@setP1 --> <!-- $$$setP2[overload1]$$$setP2constQPoint& --> <h3 class="fn"><a name="setP2"></a><span class="type">void</span> QLine::<span class="name">setP2</span> ( const <span class="type"><a href="qpoint.html">QPoint</a></span> & <i>p2</i> )</h3> <p>Sets the end point of this line to <i>p2</i>.</p> <p>This function was introduced in Qt 4.4.</p> <p><b>See also </b><a href="qline.html#setP1">setP1</a>() and <a href="qline.html#p2">p2</a>().</p> <!-- @@@setP2 --> <!-- $$$setLine[overload1]$$$setLineintintintint --> <h3 class="fn"><a name="setLine"></a><span class="type">void</span> QLine::<span class="name">setLine</span> ( <span class="type">int</span> <i>x1</i>, <span class="type">int</span> <i>y1</i>, <span class="type">int</span> <i>x2</i>, <span class="type">int</span> <i>y2</i> )</h3> <p>Sets this line to the start in <i>x1</i>, <i>y1</i> and end in <i>x2</i>, <i>y2</i>.</p> <p>This function was introduced in Qt 4.4.</p> <p><b>See also </b><a href="qline.html#setP1">setP1</a>(), <a href="qline.html#setP2">setP2</a>(), <a href="qline.html#p1">p1</a>(), and <a href="qline.html#p2">p2</a>().</p> <!-- @@@setLine --> <!-- $$$setPoints[overload1]$$$setPointsconstQPoint&constQPoint& --> <h3 class="fn"><a name="setPoints"></a><span class="type">void</span> QLine::<span class="name">setPoints</span> ( const <span class="type"><a href="qpoint.html">QPoint</a></span> & <i>p1</i>, const <span class="type"><a href="qpoint.html">QPoint</a></span> & <i>p2</i> )</h3> <p>Sets the start point of this line to <i>p1</i> and the end point of this line to <i>p2</i>.</p> <p>This function was introduced in Qt 4.4.</p> <p><b>See also </b><a href="qline.html#setP1">setP1</a>(), <a href="qline.html#setP2">setP2</a>(), <a href="qline.html#p1">p1</a>(), and <a href="qline.html#p2">p2</a>().</p> <!-- @@@setPoints --> <!-- $$$translate[overload1]$$$translateconstQPoint& --> <h3 class="fn"><a name="translate"></a><span class="type">void</span> QLine::<span class="name">translate</span> ( const <span class="type"><a href="qpoint.html">QPoint</a></span> & <i>offset</i> )</h3> <p>Translates this line by the given <i>offset</i>.</p> <!-- @@@translate --> <!-- $$$translate$$$translateintint --> <h3 class="fn"><a name="translate-2"></a><span class="type">void</span> QLine::<span class="name">translate</span> ( <span class="type">int</span> <i>dx</i>, <span class="type">int</span> <i>dy</i> )</h3> <p>This is an overloaded function.</p> <p>Translates this line the distance specified by <i>dx</i> and <i>dy</i>.</p> <!-- @@@translate --> <!-- $$$translated[overload1]$$$translatedconstQPoint& --> <h3 class="fn"><a name="translated"></a><span class="type">QLine</span> QLine::<span class="name">translated</span> ( const <span class="type"><a href="qpoint.html">QPoint</a></span> & <i>offset</i> ) const</h3> <p>Returns this line translated by the given <i>offset</i>.</p> <p>This function was introduced in Qt 4.4.</p> <!-- @@@translated --> <!-- $$$translated$$$translatedintint --> <h3 class="fn"><a name="translated-2"></a><span class="type">QLine</span> QLine::<span class="name">translated</span> ( <span class="type">int</span> <i>dx</i>, <span class="type">int</span> <i>dy</i> ) const</h3> <p>This is an overloaded function.</p> <p>Returns this line translated the distance specified by <i>dx</i> and <i>dy</i>.</p> <p>This function was introduced in Qt 4.4.</p> <!-- @@@translated --> <!-- $$$operator!=[overload1]$$$operator!=constQLine& --> <h3 class="fn"><a name="operator-not-eq"></a><span class="type">bool</span> QLine::<span class="name">operator!=</span> ( const <span class="type">QLine</span> & <i>line</i> ) const</h3> <p>Returns true if the given <i>line</i> is not the same as <i>this</i> line.</p> <p>A line is different from another line if any of their start or end points differ, or the internal order of the points is different.</p> <!-- @@@operator!= --> <!-- $$$operator==[overload1]$$$operator==constQLine& --> <h3 class="fn"><a name="operator-eq-eq"></a><span class="type">bool</span> QLine::<span class="name">operator==</span> ( const <span class="type">QLine</span> & <i>line</i> ) const</h3> <p>Returns true if the given <i>line</i> is the same as <i>this</i> line.</p> <p>A line is identical to another line if the start and end points are identical, and the internal order of the points is the same.</p> <!-- @@@operator== --> </div> <div class="relnonmem"> <h2>Related Non-Members</h2> <!-- $$$operator<<$$$operator<<QDataStream&constQLine& --> <h3 class="fn"><a name="operator-lt-lt-49"></a><span class="type"><a href="qdatastream.html">QDataStream</a></span> & <span class="name">operator<<</span> ( <span class="type"><a href="qdatastream.html">QDataStream</a></span> & <i>stream</i>, const <span class="type">QLine</span> & <i>line</i> )</h3> <p>Writes the given <i>line</i> to the given <i>stream</i> and returns a reference to the stream.</p> <p><b>See also </b><a href="datastreamformat.html">Serializing Qt Data Types</a>.</p> <!-- @@@operator<< --> <!-- $$$operator>>$$$operator>>QDataStream&QLine& --> <h3 class="fn"><a name="operator-gt-gt-32"></a><span class="type"><a href="qdatastream.html">QDataStream</a></span> & <span class="name">operator>></span> ( <span class="type"><a href="qdatastream.html">QDataStream</a></span> & <i>stream</i>, <span class="type">QLine</span> & <i>line</i> )</h3> <p>Reads a line from the given <i>stream</i> into the given <i>line</i> and returns a reference to the stream.</p> <p><b>See also </b><a href="datastreamformat.html">Serializing Qt Data Types</a>.</p> <!-- @@@operator>> --> </div> </div> </div> </div> <div class="ft"> <span></span> </div> </div> <div class="footer"> <p> <acronym title="Copyright">©</acronym> 2013 Digia Plc 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> Digia, Qt and their respective logos are trademarks of Digia Plc 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>