<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd"> <html><head><title>QRectF Class Reference</title><style>h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm } a:link { color: #004faf; text-decoration: none } a:visited { color: #672967; text-decoration: none } td.postheader { font-family: sans-serif } tr.address { font-family: sans-serif } body { background: #ffffff; color: black; } </style></head><body><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr /><td align="left" valign="top" width="32"><img align="left" border="0" height="32" src="images/rb-logo.png" width="32" /></td><td width="1">  </td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a> · <a href="classes.html"><font color="#004faf">All Classes</font></a> · <a href="modules.html"><font color="#004faf">Modules</font></a></td></table><h1 align="center">QRectF Class Reference<br /><sup><sup>[<a href="qtcore.html">QtCore</a> module]</sup></sup></h1><p>The QRectF class defines a rectangle in the plane using floating point precision. <a href="#details">More...</a></p> <h3>Methods</h3><ul><li><div class="fn" /><b><a href="qrectf.html#QRectF">__init__</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qrectf.html#QRectF-2">__init__</a></b> (<i>self</i>, QPointF <i>atopLeft</i>, QSizeF <i>asize</i>)</li><li><div class="fn" /><b><a href="qrectf.html#QRectF-3">__init__</a></b> (<i>self</i>, QPointF <i>atopLeft</i>, QPointF <i>abottomRight</i>)</li><li><div class="fn" /><b><a href="qrectf.html#QRectF-4">__init__</a></b> (<i>self</i>, float <i>aleft</i>, float <i>atop</i>, float <i>awidth</i>, float <i>aheight</i>)</li><li><div class="fn" /><b><a href="qrectf.html#QRectF-5">__init__</a></b> (<i>self</i>, QRect <i>r</i>)</li><li><div class="fn" /><b><a href="qrectf.html#QRectF-6">__init__</a></b> (<i>self</i>, QRectF)</li><li><div class="fn" /><b><a href="qrectf.html#adjust">adjust</a></b> (<i>self</i>, float <i>xp1</i>, float <i>yp1</i>, float <i>xp2</i>, float <i>yp2</i>)</li><li><div class="fn" />QRectF <b><a href="qrectf.html#adjusted">adjusted</a></b> (<i>self</i>, float <i>xp1</i>, float <i>yp1</i>, float <i>xp2</i>, float <i>yp2</i>)</li><li><div class="fn" />float <b><a href="qrectf.html#bottom">bottom</a></b> (<i>self</i>)</li><li><div class="fn" />QPointF <b><a href="qrectf.html#bottomLeft">bottomLeft</a></b> (<i>self</i>)</li><li><div class="fn" />QPointF <b><a href="qrectf.html#bottomRight">bottomRight</a></b> (<i>self</i>)</li><li><div class="fn" />QPointF <b><a href="qrectf.html#center">center</a></b> (<i>self</i>)</li><li><div class="fn" />bool <b><a href="qrectf.html#contains">contains</a></b> (<i>self</i>, QPointF <i>p</i>)</li><li><div class="fn" />bool <b><a href="qrectf.html#contains-2">contains</a></b> (<i>self</i>, QRectF <i>r</i>)</li><li><div class="fn" />bool <b><a href="qrectf.html#contains-3">contains</a></b> (<i>self</i>, float <i>ax</i>, float <i>ay</i>)</li><li><div class="fn" />(float <i>xp1</i>, float <i>yp1</i>, float <i>xp2</i>, float <i>yp2</i>) <b><a href="qrectf.html#getCoords">getCoords</a></b> (<i>self</i>)</li><li><div class="fn" />(float <i>ax</i>, float <i>ay</i>, float <i>aaw</i>, float <i>aah</i>) <b><a href="qrectf.html#getRect">getRect</a></b> (<i>self</i>)</li><li><div class="fn" />float <b><a href="qrectf.html#height">height</a></b> (<i>self</i>)</li><li><div class="fn" />QRectF <b><a href="qrectf.html#intersect">intersect</a></b> (<i>self</i>, QRectF <i>r</i>)</li><li><div class="fn" />QRectF <b><a href="qrectf.html#intersected">intersected</a></b> (<i>self</i>, QRectF <i>r</i>)</li><li><div class="fn" />bool <b><a href="qrectf.html#intersects">intersects</a></b> (<i>self</i>, QRectF <i>r</i>)</li><li><div class="fn" />bool <b><a href="qrectf.html#isEmpty">isEmpty</a></b> (<i>self</i>)</li><li><div class="fn" />bool <b><a href="qrectf.html#isNull">isNull</a></b> (<i>self</i>)</li><li><div class="fn" />bool <b><a href="qrectf.html#isValid">isValid</a></b> (<i>self</i>)</li><li><div class="fn" />float <b><a href="qrectf.html#left">left</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qrectf.html#moveBottom">moveBottom</a></b> (<i>self</i>, float <i>pos</i>)</li><li><div class="fn" /><b><a href="qrectf.html#moveBottomLeft">moveBottomLeft</a></b> (<i>self</i>, QPointF <i>p</i>)</li><li><div class="fn" /><b><a href="qrectf.html#moveBottomRight">moveBottomRight</a></b> (<i>self</i>, QPointF <i>p</i>)</li><li><div class="fn" /><b><a href="qrectf.html#moveCenter">moveCenter</a></b> (<i>self</i>, QPointF <i>p</i>)</li><li><div class="fn" /><b><a href="qrectf.html#moveLeft">moveLeft</a></b> (<i>self</i>, float <i>pos</i>)</li><li><div class="fn" /><b><a href="qrectf.html#moveRight">moveRight</a></b> (<i>self</i>, float <i>pos</i>)</li><li><div class="fn" /><b><a href="qrectf.html#moveTo">moveTo</a></b> (<i>self</i>, float <i>ax</i>, float <i>ay</i>)</li><li><div class="fn" /><b><a href="qrectf.html#moveTo-2">moveTo</a></b> (<i>self</i>, QPointF <i>p</i>)</li><li><div class="fn" /><b><a href="qrectf.html#moveTop">moveTop</a></b> (<i>self</i>, float <i>pos</i>)</li><li><div class="fn" /><b><a href="qrectf.html#moveTopLeft">moveTopLeft</a></b> (<i>self</i>, QPointF <i>p</i>)</li><li><div class="fn" /><b><a href="qrectf.html#moveTopRight">moveTopRight</a></b> (<i>self</i>, QPointF <i>p</i>)</li><li><div class="fn" />QRectF <b><a href="qrectf.html#normalized">normalized</a></b> (<i>self</i>)</li><li><div class="fn" />float <b><a href="qrectf.html#right">right</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qrectf.html#setBottom">setBottom</a></b> (<i>self</i>, float <i>pos</i>)</li><li><div class="fn" /><b><a href="qrectf.html#setBottomLeft">setBottomLeft</a></b> (<i>self</i>, QPointF <i>p</i>)</li><li><div class="fn" /><b><a href="qrectf.html#setBottomRight">setBottomRight</a></b> (<i>self</i>, QPointF <i>p</i>)</li><li><div class="fn" /><b><a href="qrectf.html#setCoords">setCoords</a></b> (<i>self</i>, float <i>xp1</i>, float <i>yp1</i>, float <i>xp2</i>, float <i>yp2</i>)</li><li><div class="fn" /><b><a href="qrectf.html#setHeight">setHeight</a></b> (<i>self</i>, float <i>ah</i>)</li><li><div class="fn" /><b><a href="qrectf.html#setLeft">setLeft</a></b> (<i>self</i>, float <i>pos</i>)</li><li><div class="fn" /><b><a href="qrectf.html#setRect">setRect</a></b> (<i>self</i>, float <i>ax</i>, float <i>ay</i>, float <i>aaw</i>, float <i>aah</i>)</li><li><div class="fn" /><b><a href="qrectf.html#setRight">setRight</a></b> (<i>self</i>, float <i>pos</i>)</li><li><div class="fn" /><b><a href="qrectf.html#setSize">setSize</a></b> (<i>self</i>, QSizeF <i>s</i>)</li><li><div class="fn" /><b><a href="qrectf.html#setTop">setTop</a></b> (<i>self</i>, float <i>pos</i>)</li><li><div class="fn" /><b><a href="qrectf.html#setTopLeft">setTopLeft</a></b> (<i>self</i>, QPointF <i>p</i>)</li><li><div class="fn" /><b><a href="qrectf.html#setTopRight">setTopRight</a></b> (<i>self</i>, QPointF <i>p</i>)</li><li><div class="fn" /><b><a href="qrectf.html#setWidth">setWidth</a></b> (<i>self</i>, float <i>aw</i>)</li><li><div class="fn" /><b><a href="qrectf.html#setX">setX</a></b> (<i>self</i>, float <i>pos</i>)</li><li><div class="fn" /><b><a href="qrectf.html#setY">setY</a></b> (<i>self</i>, float <i>pos</i>)</li><li><div class="fn" />QSizeF <b><a href="qrectf.html#size">size</a></b> (<i>self</i>)</li><li><div class="fn" />QRect <b><a href="qrectf.html#toAlignedRect">toAlignedRect</a></b> (<i>self</i>)</li><li><div class="fn" />float <b><a href="qrectf.html#top">top</a></b> (<i>self</i>)</li><li><div class="fn" />QPointF <b><a href="qrectf.html#topLeft">topLeft</a></b> (<i>self</i>)</li><li><div class="fn" />QPointF <b><a href="qrectf.html#topRight">topRight</a></b> (<i>self</i>)</li><li><div class="fn" />QRect <b><a href="qrectf.html#toRect">toRect</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qrectf.html#translate">translate</a></b> (<i>self</i>, float <i>dx</i>, float <i>dy</i>)</li><li><div class="fn" /><b><a href="qrectf.html#translate-2">translate</a></b> (<i>self</i>, QPointF <i>p</i>)</li><li><div class="fn" />QRectF <b><a href="qrectf.html#translated">translated</a></b> (<i>self</i>, float <i>dx</i>, float <i>dy</i>)</li><li><div class="fn" />QRectF <b><a href="qrectf.html#translated-2">translated</a></b> (<i>self</i>, QPointF <i>p</i>)</li><li><div class="fn" />QRectF <b><a href="qrectf.html#unite">unite</a></b> (<i>self</i>, QRectF <i>r</i>)</li><li><div class="fn" />QRectF <b><a href="qrectf.html#united">united</a></b> (<i>self</i>, QRectF <i>r</i>)</li><li><div class="fn" />float <b><a href="qrectf.html#width">width</a></b> (<i>self</i>)</li><li><div class="fn" />float <b><a href="qrectf.html#x">x</a></b> (<i>self</i>)</li><li><div class="fn" />float <b><a href="qrectf.html#y">y</a></b> (<i>self</i>)</li></ul><h3>Special Methods</h3><ul><li><div class="fn" />QRectF <b><a href="qrectf.html#__and__">__and__</a></b> (<i>self</i>, QRectF <i>r</i>)</li><li><div class="fn" />int <b><a href="qrectf.html#__bool__">__bool__</a></b> (<i>self</i>)</li><li><div class="fn" />int <b><a href="qrectf.html#__contains__">__contains__</a></b> (<i>self</i>, QPointF <i>p</i>)</li><li><div class="fn" />int <b><a href="qrectf.html#__contains__-2">__contains__</a></b> (<i>self</i>, QRectF <i>r</i>)</li><li><div class="fn" />bool <b><a href="qrectf.html#__eq__">__eq__</a></b> (<i>self</i>, QRectF <i>r2</i>)</li><li><div class="fn" />QRectF <b><a href="qrectf.html#__iand__">__iand__</a></b> (<i>self</i>, QRectF <i>r</i>)</li><li><div class="fn" />QRectF <b><a href="qrectf.html#__ior__">__ior__</a></b> (<i>self</i>, QRectF <i>r</i>)</li><li><div class="fn" />bool <b><a href="qrectf.html#__ne__">__ne__</a></b> (<i>self</i>, QRectF <i>r2</i>)</li><li><div class="fn" />QRectF <b><a href="qrectf.html#__or__">__or__</a></b> (<i>self</i>, QRectF <i>r</i>)</li><li><div class="fn" />str <b><a href="qrectf.html#__repr__">__repr__</a></b> (<i>self</i>)</li></ul><a name="details" /><hr /><h2>Detailed Description</h2><p>This class can be pickled.</p><p>The QRectF class defines a rectangle in the plane using floating point precision.</p> <p>A rectangle is normally expressed as an upper-left corner and a size. The size (width and height) of a QRectF is always equivalent to the mathematical rectangle that forms the basis for its rendering.</p> <p>A QRectF can be constructed with a set of left, top, width and height integers, or from a <a href="qpoint.html">QPoint</a> and a <a href="qsize.html">QSize</a>. The following code creates two identical rectangles.</p> <pre class="cpp"> <span class="type">QRectF</span> r1(<span class="number">100</span><span class="operator">,</span> <span class="number">200</span><span class="operator">,</span> <span class="number">11</span><span class="operator">,</span> <span class="number">16</span>); <span class="type">QRectF</span> r2(<span class="type"><a href="qpoint.html">QPoint</a></span>(<span class="number">100</span><span class="operator">,</span> <span class="number">200</span>)<span class="operator">,</span> <span class="type"><a href="qsize.html">QSize</a></span>(<span class="number">11</span><span class="operator">,</span> <span class="number">16</span>)); </pre> <p>There is also a third constructor creating a QRectF from a <a href="qrect.html">QRect</a>, and a corresponding <a href="qrectf.html#toRect">toRect</a>() function that returns a <a href="qrect.html">QRect</a> object based on the values of this rectangle (note that the coordinates in the returned rectangle are rounded to the nearest integer).</p> <p>The QRectF class provides a collection of functions that return the various rectangle coordinates, and enable manipulation of these. QRectF also provide functions to move the rectangle relative to the various coordinates. In addition there is a <a href="qrectf.html#moveTo">moveTo</a>() function that moves the rectangle, leaving its top left corner at the given coordinates. Alternatively, the <a href="qrectf.html#translate">translate</a>() function moves the rectangle the given offset relative to the current position, and the <a href="qrectf.html#translated">translated</a>() function returns a translated copy of this rectangle.</p> <p>The <a href="qrectf.html#size">size</a>() function returns the rectange's dimensions as a <a href="qsize.html">QSize</a>. The dimensions can also be retrieved separately using the <a href="qrectf.html#width">width</a>() and <a href="qrectf.html#height">height</a>() functions. To manipulate the dimensions use the <a href="qrectf.html#setSize">setSize</a>(), <a href="qrectf.html#setWidth">setWidth</a>() or <a href="qrectf.html#setHeight">setHeight</a>() functions. Alternatively, the size can be changed by applying either of the functions setting the rectangle coordinates, for example, <a href="qrectf.html#setBottom">setBottom</a>() or <a href="qrectf.html#setRight">setRight</a>().</p> <p>The <a href="qrectf.html#contains">contains</a>() function tells whether a given point is inside the rectangle or not, and the <a href="qrectf.html#intersects">intersects</a>() function returns true if this rectangle intersects with a given rectangle (otherwise false). The QRectF class also provides the <a href="qrectf.html#intersected">intersected</a>() function which returns the intersection rectangle, and the <a href="qrectf.html#united">united</a>() function which returns the rectangle that encloses the given rectangle and this:</p> <table class="generic"> <tr class="odd" valign="top"> <td><img alt="" src="images/qrect-intersect.png" /></td> <td><img alt="" src="images/qrect-unite.png" /></td> </tr> <tr class="even" valign="top"> <td><a href="qrectf.html#intersected">intersected</a>()</td> <td><a href="qrectf.html#united">united</a>()</td> </tr> </table> <p>The <a href="qrectf.html#isEmpty">isEmpty</a>() function returns true if the rectangle's width or height is less than, or equal to, 0. Note that an empty rectangle is not valid: The <a href="qrectf.html#isValid">isValid</a>() function returns true if both width and height is larger than 0. A null rectangle (<a href="qrectf.html#isNull">isNull</a>() == true) on the other hand, has both width and height set to 0.</p> <p>Note that due to the way <a href="qrect.html">QRect</a> and QRectF are defined, an empty QRectF is defined in essentially the same way as <a href="qrect.html">QRect</a>.</p> <p>Finally, QRectF objects can be streamed as well as compared.</p> <a id="rendering" name="rendering" /> <h3>Rendering</h3> <p>When using an <a href="qpainter.html#RenderHint-enum">anti-aliased</a> painter, the boundary line of a QRectF will be rendered symmetrically on both sides of the mathematical rectangle's boundary line. But when using an aliased painter (the default) other rules apply.</p> <p>Then, when rendering with a one pixel wide pen the QRectF's boundary line will be rendered to the right and below the mathematical rectangle's boundary line.</p> <p>When rendering with a two pixels wide pen the boundary line will be split in the middle by the mathematical rectangle. This will be the case whenever the pen is set to an even number of pixels, while rendering with a pen with an odd number of pixels, the spare pixel will be rendered to the right and below the mathematical rectangle as in the one pixel case.</p> <table class="generic"> <tr class="odd" valign="top"> <td><img alt="" src="images/qrect-diagram-zero.png" /></td> <td><img alt="" src="images/qrectf-diagram-one.png" /></td> </tr> <tr class="even" valign="top"> <td>Logical representation</td> <td>One pixel wide pen</td> </tr> <tr class="odd" valign="top"> <td><img alt="" src="images/qrectf-diagram-two.png" /></td> <td><img alt="" src="images/qrectf-diagram-three.png" /></td> </tr> <tr class="even" valign="top"> <td>Two pixel wide pen</td> <td>Three pixel wide pen</td> </tr> </table> <a id="coordinates" name="coordinates" /> <h3>Coordinates</h3> <p>The QRectF class provides a collection of functions that return the various rectangle coordinates, and enable manipulation of these. QRectF also provide functions to move the rectangle relative to the various coordinates.</p> <p>For example: the <a href="qrectf.html#bottom">bottom</a>(), <a href="qrectf.html#setBottom">setBottom</a>() and <a href="qrectf.html#moveBottom">moveBottom</a>() functions: <a href="qrectf.html#bottom">bottom</a>() returns the y-coordinate of the rectangle's bottom edge, <a href="qrectf.html#setBottom">setBottom</a>() sets the bottom edge of the rectangle to the given y coordinate (it may change the height, but will never change the rectangle's top edge) and <a href="qrectf.html#moveBottom">moveBottom</a>() moves the entire rectangle vertically, leaving the rectangle's bottom edge at the given y coordinate and its size unchanged.</p> <p class="centerAlign"><img alt="" src="images/qrectf-coordinates.png" /></p> <p>It is also possible to add offsets to this rectangle's coordinates using the <a href="qrectf.html#adjust">adjust</a>() function, as well as retrieve a new rectangle based on adjustments of the original one using the <a href="qrectf.html#adjusted">adjusted</a>() function. If either of the width and height is negative, use the <a href="qrectf.html#normalized">normalized</a>() function to retrieve a rectangle where the corners are swapped.</p> <p>In addition, QRectF provides the <a href="qrectf.html#getCoords">getCoords</a>() function which extracts the position of the rectangle's top-left and bottom-right corner, and the <a href="qrectf.html#getRect">getRect</a>() function which extracts the rectangle's top-left corner, width and height. Use the <a href="qrectf.html#setCoords">setCoords</a>() and <a href="qrectf.html#setRect">setRect</a>() function to manipulate the rectangle's coordinates and dimensions in one go.</p> <hr /><h2>Method Documentation</h2><h3 class="fn"><a name="QRectF" />QRectF.__init__ (<i>self</i>)</h3><p>Constructs a null rectangle.</p> <p><b>See also</b> <a href="qrectf.html#isNull">isNull</a>().</p> <h3 class="fn"><a name="QRectF-2" />QRectF.__init__ (<i>self</i>, <a href="qpointf.html">QPointF</a> <i>atopLeft</i>, <a href="qsizef.html">QSizeF</a> <i>asize</i>)</h3><p>Constructs a rectangle with the given <i>topLeft</i> corner and the given <i>size</i>.</p> <p><b>See also</b> <a href="qrectf.html#setTopLeft">setTopLeft</a>() and <a href="qrectf.html#setSize">setSize</a>().</p> <h3 class="fn"><a name="QRectF-3" />QRectF.__init__ (<i>self</i>, <a href="qpointf.html">QPointF</a> <i>atopLeft</i>, <a href="qpointf.html">QPointF</a> <i>abottomRight</i>)</h3><p>Constructs a rectangle with the given <i>topLeft</i> and <i>bottomRight</i> corners.</p> <p>This function was introduced in Qt 4.3.</p> <p><b>See also</b> <a href="qrectf.html#setTopLeft">setTopLeft</a>() and <a href="qrectf.html#setBottomRight">setBottomRight</a>().</p> <h3 class="fn"><a name="QRectF-4" />QRectF.__init__ (<i>self</i>, float <i>aleft</i>, float <i>atop</i>, float <i>awidth</i>, float <i>aheight</i>)</h3><p>Constructs a rectangle with (<i>x</i>, <i>y</i>) as its top-left corner and the given <i>width</i> and <i>height</i>.</p> <p><b>See also</b> <a href="qrectf.html#setRect">setRect</a>().</p> <h3 class="fn"><a name="QRectF-5" />QRectF.__init__ (<i>self</i>, <a href="qrect.html">QRect</a> <i>r</i>)</h3><p>Constructs a <a href="qrectf.html">QRectF</a> rectangle from the given <a href="qrect.html">QRect</a> <i>rectangle</i>.</p> <p><b>See also</b> <a href="qrectf.html#toRect">toRect</a>().</p> <h3 class="fn"><a name="QRectF-6" />QRectF.__init__ (<i>self</i>, <a href="qrectf.html">QRectF</a>)</h3><h3 class="fn"><a name="adjust" />QRectF.adjust (<i>self</i>, float <i>xp1</i>, float <i>yp1</i>, float <i>xp2</i>, float <i>yp2</i>)</h3><p>Adds <i>dx1</i>, <i>dy1</i>, <i>dx2</i> and <i>dy2</i> respectively to the existing coordinates of the rectangle.</p> <p><b>See also</b> <a href="qrectf.html#adjusted">adjusted</a>() and <a href="qrectf.html#setRect">setRect</a>().</p> <h3 class="fn"><a name="adjusted" /><a href="qrectf.html">QRectF</a> QRectF.adjusted (<i>self</i>, float <i>xp1</i>, float <i>yp1</i>, float <i>xp2</i>, float <i>yp2</i>)</h3><p>Returns a new rectangle with <i>dx1</i>, <i>dy1</i>, <i>dx2</i> and <i>dy2</i> added respectively to the existing coordinates of this rectangle.</p> <p><b>See also</b> <a href="qrectf.html#adjust">adjust</a>().</p> <h3 class="fn"><a name="bottom" />float QRectF.bottom (<i>self</i>)</h3><p>Returns the y-coordinate of the rectangle's bottom edge.</p> <p><b>See also</b> <a href="qrectf.html#setBottom">setBottom</a>(), <a href="qrectf.html#bottomLeft">bottomLeft</a>(), and <a href="qrectf.html#bottomRight">bottomRight</a>().</p> <h3 class="fn"><a name="bottomLeft" /><a href="qpointf.html">QPointF</a> QRectF.bottomLeft (<i>self</i>)</h3><p>Returns the position of the rectangle's bottom-left corner.</p> <p><b>See also</b> <a href="qrectf.html#setBottomLeft">setBottomLeft</a>(), <a href="qrectf.html#bottom">bottom</a>(), and <a href="qrectf.html#left">left</a>().</p> <h3 class="fn"><a name="bottomRight" /><a href="qpointf.html">QPointF</a> QRectF.bottomRight (<i>self</i>)</h3><p>Returns the position of the rectangle's bottom-right corner.</p> <p><b>See also</b> <a href="qrectf.html#setBottomRight">setBottomRight</a>(), <a href="qrectf.html#bottom">bottom</a>(), and <a href="qrectf.html#right">right</a>().</p> <h3 class="fn"><a name="center" /><a href="qpointf.html">QPointF</a> QRectF.center (<i>self</i>)</h3><p>Returns the center point of the rectangle.</p> <p><b>See also</b> <a href="qrectf.html#moveCenter">moveCenter</a>().</p> <h3 class="fn"><a name="contains" />bool QRectF.contains (<i>self</i>, <a href="qpointf.html">QPointF</a> <i>p</i>)</h3><p>Returns true if the given <i>point</i> is inside or on the edge of the rectangle; otherwise returns false.</p> <p><b>See also</b> <a href="qrectf.html#intersects">intersects</a>().</p> <h3 class="fn"><a name="contains-2" />bool QRectF.contains (<i>self</i>, <a href="qrectf.html">QRectF</a> <i>r</i>)</h3><p>This is an overloaded function.</p> <p>Returns true if the point (<i>x</i>, <i>y</i>) is inside or on the edge of the rectangle; otherwise returns false.</p> <h3 class="fn"><a name="contains-3" />bool QRectF.contains (<i>self</i>, float <i>ax</i>, float <i>ay</i>)</h3><p>This is an overloaded function.</p> <p>Returns true if the given <i>rectangle</i> is inside this rectangle; otherwise returns false.</p> <h3 class="fn"><a name="getCoords" />(float <i>xp1</i>, float <i>yp1</i>, float <i>xp2</i>, float <i>yp2</i>) QRectF.getCoords (<i>self</i>)</h3><p>Extracts the position of the rectangle's top-left corner to *<i>x1</i> and *<i>y1</i>, and the position of the bottom-right corner to *<i>x2</i> and *<i>y2</i>.</p> <p><b>See also</b> <a href="qrectf.html#setCoords">setCoords</a>() and <a href="qrectf.html#getRect">getRect</a>().</p> <h3 class="fn"><a name="getRect" />(float <i>ax</i>, float <i>ay</i>, float <i>aaw</i>, float <i>aah</i>) QRectF.getRect (<i>self</i>)</h3><p>Extracts the position of the rectangle's top-left corner to *<i>x</i> and *<i>y</i>, and its dimensions to *<i>width</i> and *<i>height</i>.</p> <p><b>See also</b> <a href="qrectf.html#setRect">setRect</a>() and <a href="qrectf.html#getCoords">getCoords</a>().</p> <h3 class="fn"><a name="height" />float QRectF.height (<i>self</i>)</h3><p>Returns the height of the rectangle.</p> <p><b>See also</b> <a href="qrectf.html#setHeight">setHeight</a>(), <a href="qrectf.html#width">width</a>(), and <a href="qrectf.html#size">size</a>().</p> <h3 class="fn"><a name="intersect" /><a href="qrectf.html">QRectF</a> QRectF.intersect (<i>self</i>, <a href="qrectf.html">QRectF</a> <i>r</i>)</h3><h3 class="fn"><a name="intersected" /><a href="qrectf.html">QRectF</a> QRectF.intersected (<i>self</i>, <a href="qrectf.html">QRectF</a> <i>r</i>)</h3><p>Returns the intersection of this rectangle and the given <i>rectangle</i>. Note that <tt>r.intersected(s)</tt> is equivalent to <tt>r & s</tt>.</p> <p class="centerAlign"><img alt="" src="images/qrect-intersect.png" /></p> <p>This function was introduced in Qt 4.2.</p> <p><b>See also</b> <a href="qrectf.html#intersects">intersects</a>(), <a href="qrectf.html#united">united</a>(), and <a href="qrectf.html#operator-and-eq">operator&=</a>().</p> <h3 class="fn"><a name="intersects" />bool QRectF.intersects (<i>self</i>, <a href="qrectf.html">QRectF</a> <i>r</i>)</h3><p>Returns true if this rectangle intersects with the given <i>rectangle</i> (i.e. there is a non-empty area of overlap between them), otherwise returns false.</p> <p>The intersection rectangle can be retrieved using the <a href="qrectf.html#intersected">intersected</a>() function.</p> <p><b>See also</b> <a href="qrectf.html#contains">contains</a>().</p> <h3 class="fn"><a name="isEmpty" />bool QRectF.isEmpty (<i>self</i>)</h3><p>Returns true if the rectangle is empty, otherwise returns false.</p> <p>An empty rectangle has <a href="qrectf.html#width">width</a>() <= 0 or <a href="qrectf.html#height">height</a>() <= 0. An empty rectangle is not valid (i.e., isEmpty() == !<a href="qrectf.html#isValid">isValid</a>()).</p> <p>Use the <a href="qrectf.html#normalized">normalized</a>() function to retrieve a rectangle where the corners are swapped.</p> <p><b>See also</b> <a href="qrectf.html#isNull">isNull</a>(), <a href="qrectf.html#isValid">isValid</a>(), and <a href="qrectf.html#normalized">normalized</a>().</p> <h3 class="fn"><a name="isNull" />bool QRectF.isNull (<i>self</i>)</h3><p>Returns true if the rectangle is a null rectangle, otherwise returns false.</p> <p>A null rectangle has both the width and the height set to 0. A null rectangle is also empty, and hence not valid.</p> <p><b>See also</b> <a href="qrectf.html#isEmpty">isEmpty</a>() and <a href="qrectf.html#isValid">isValid</a>().</p> <h3 class="fn"><a name="isValid" />bool QRectF.isValid (<i>self</i>)</h3><p>Returns true if the rectangle is valid, otherwise returns false.</p> <p>A valid rectangle has a <a href="qrectf.html#width">width</a>() > 0 and <a href="qrectf.html#height">height</a>() > 0. Note that non-trivial operations like intersections are not defined for invalid rectangles. A valid rectangle is not empty (i.e., isValid() == !<a href="qrectf.html#isEmpty">isEmpty</a>()).</p> <p><b>See also</b> <a href="qrectf.html#isNull">isNull</a>(), <a href="qrectf.html#isEmpty">isEmpty</a>(), and <a href="qrectf.html#normalized">normalized</a>().</p> <h3 class="fn"><a name="left" />float QRectF.left (<i>self</i>)</h3><p>Returns the x-coordinate of the rectangle's left edge. Equivalent to <a href="qrectf.html#x">x</a>().</p> <p><b>See also</b> <a href="qrectf.html#setLeft">setLeft</a>(), <a href="qrectf.html#topLeft">topLeft</a>(), and <a href="qrectf.html#bottomLeft">bottomLeft</a>().</p> <h3 class="fn"><a name="moveBottom" />QRectF.moveBottom (<i>self</i>, float <i>pos</i>)</h3><p>Moves the rectangle vertically, leaving the rectangle's bottom edge at the given <i>y</i> coordinate. The rectangle's size is unchanged.</p> <p><b>See also</b> <a href="qrectf.html#bottom">bottom</a>(), <a href="qrectf.html#setBottom">setBottom</a>(), and <a href="qrectf.html#moveTop">moveTop</a>().</p> <h3 class="fn"><a name="moveBottomLeft" />QRectF.moveBottomLeft (<i>self</i>, <a href="qpointf.html">QPointF</a> <i>p</i>)</h3><p>Moves the rectangle, leaving the bottom-left corner at the given <i>position</i>. The rectangle's size is unchanged.</p> <p><b>See also</b> <a href="qrectf.html#setBottomLeft">setBottomLeft</a>(), <a href="qrectf.html#moveBottom">moveBottom</a>(), and <a href="qrectf.html#moveLeft">moveLeft</a>().</p> <h3 class="fn"><a name="moveBottomRight" />QRectF.moveBottomRight (<i>self</i>, <a href="qpointf.html">QPointF</a> <i>p</i>)</h3><p>Moves the rectangle, leaving the bottom-right corner at the given <i>position</i>. The rectangle's size is unchanged.</p> <p><b>See also</b> <a href="qrectf.html#setBottomRight">setBottomRight</a>(), <a href="qrectf.html#moveBottom">moveBottom</a>(), and <a href="qrectf.html#moveRight">moveRight</a>().</p> <h3 class="fn"><a name="moveCenter" />QRectF.moveCenter (<i>self</i>, <a href="qpointf.html">QPointF</a> <i>p</i>)</h3><p>Moves the rectangle, leaving the center point at the given <i>position</i>. The rectangle's size is unchanged.</p> <p><b>See also</b> <a href="qrectf.html#center">center</a>().</p> <h3 class="fn"><a name="moveLeft" />QRectF.moveLeft (<i>self</i>, float <i>pos</i>)</h3><p>Moves the rectangle horizontally, leaving the rectangle's left edge at the given <i>x</i> coordinate. The rectangle's size is unchanged.</p> <p><b>See also</b> <a href="qrectf.html#left">left</a>(), <a href="qrectf.html#setLeft">setLeft</a>(), and <a href="qrectf.html#moveRight">moveRight</a>().</p> <h3 class="fn"><a name="moveRight" />QRectF.moveRight (<i>self</i>, float <i>pos</i>)</h3><p>Moves the rectangle horizontally, leaving the rectangle's right edge at the given <i>x</i> coordinate. The rectangle's size is unchanged.</p> <p><b>See also</b> <a href="qrectf.html#right">right</a>(), <a href="qrectf.html#setRight">setRight</a>(), and <a href="qrectf.html#moveLeft">moveLeft</a>().</p> <h3 class="fn"><a name="moveTo" />QRectF.moveTo (<i>self</i>, float <i>ax</i>, float <i>ay</i>)</h3><p>Moves the rectangle, leaving the top-left corner at the given position (<i>x</i>, <i>y</i>). The rectangle's size is unchanged.</p> <p><b>See also</b> <a href="qrectf.html#translate">translate</a>() and <a href="qrectf.html#moveTopLeft">moveTopLeft</a>().</p> <h3 class="fn"><a name="moveTo-2" />QRectF.moveTo (<i>self</i>, <a href="qpointf.html">QPointF</a> <i>p</i>)</h3><p>This is an overloaded function.</p> <p>Moves the rectangle, leaving the top-left corner at the given <i>position</i>.</p> <h3 class="fn"><a name="moveTop" />QRectF.moveTop (<i>self</i>, float <i>pos</i>)</h3><p>Moves the rectangle vertically, leaving the rectangle's top line at the given <i>y</i> coordinate. The rectangle's size is unchanged.</p> <p><b>See also</b> <a href="qrectf.html#top">top</a>(), <a href="qrectf.html#setTop">setTop</a>(), and <a href="qrectf.html#moveBottom">moveBottom</a>().</p> <h3 class="fn"><a name="moveTopLeft" />QRectF.moveTopLeft (<i>self</i>, <a href="qpointf.html">QPointF</a> <i>p</i>)</h3><p>Moves the rectangle, leaving the top-left corner at the given <i>position</i>. The rectangle's size is unchanged.</p> <p><b>See also</b> <a href="qrectf.html#setTopLeft">setTopLeft</a>(), <a href="qrectf.html#moveTop">moveTop</a>(), and <a href="qrectf.html#moveLeft">moveLeft</a>().</p> <h3 class="fn"><a name="moveTopRight" />QRectF.moveTopRight (<i>self</i>, <a href="qpointf.html">QPointF</a> <i>p</i>)</h3><p>Moves the rectangle, leaving the top-right corner at the given <i>position</i>. The rectangle's size is unchanged.</p> <p><b>See also</b> <a href="qrectf.html#setTopRight">setTopRight</a>(), <a href="qrectf.html#moveTop">moveTop</a>(), and <a href="qrectf.html#moveRight">moveRight</a>().</p> <h3 class="fn"><a name="normalized" /><a href="qrectf.html">QRectF</a> QRectF.normalized (<i>self</i>)</h3><p>Returns a normalized rectangle; i.e., a rectangle that has a non-negative width and height.</p> <p>If <a href="qrectf.html#width">width</a>() < 0 the function swaps the left and right corners, and it swaps the top and bottom corners if <a href="qrectf.html#height">height</a>() < 0.</p> <p><b>See also</b> <a href="qrectf.html#isValid">isValid</a>() and <a href="qrectf.html#isEmpty">isEmpty</a>().</p> <h3 class="fn"><a name="right" />float QRectF.right (<i>self</i>)</h3><p>Returns the x-coordinate of the rectangle's right edge.</p> <p><b>See also</b> <a href="qrectf.html#setRight">setRight</a>(), <a href="qrectf.html#topRight">topRight</a>(), and <a href="qrectf.html#bottomRight">bottomRight</a>().</p> <h3 class="fn"><a name="setBottom" />QRectF.setBottom (<i>self</i>, float <i>pos</i>)</h3><p>Sets the bottom edge of the rectangle to the given <i>y</i> coordinate. May change the height, but will never change the top edge of the rectangle.</p> <p><b>See also</b> <a href="qrectf.html#bottom">bottom</a>() and <a href="qrectf.html#moveBottom">moveBottom</a>().</p> <h3 class="fn"><a name="setBottomLeft" />QRectF.setBottomLeft (<i>self</i>, <a href="qpointf.html">QPointF</a> <i>p</i>)</h3><p>Set the bottom-left corner of the rectangle to the given <i>position</i>. May change the size, but will never change the top-right corner of the rectangle.</p> <p><b>See also</b> <a href="qrectf.html#bottomLeft">bottomLeft</a>() and <a href="qrectf.html#moveBottomLeft">moveBottomLeft</a>().</p> <h3 class="fn"><a name="setBottomRight" />QRectF.setBottomRight (<i>self</i>, <a href="qpointf.html">QPointF</a> <i>p</i>)</h3><p>Set the bottom-right corner of the rectangle to the given <i>position</i>. May change the size, but will never change the top-left corner of the rectangle.</p> <p><b>See also</b> <a href="qrectf.html#bottomRight">bottomRight</a>() and <a href="qrectf.html#moveBottomRight">moveBottomRight</a>().</p> <h3 class="fn"><a name="setCoords" />QRectF.setCoords (<i>self</i>, float <i>xp1</i>, float <i>yp1</i>, float <i>xp2</i>, float <i>yp2</i>)</h3><p>Sets the coordinates of the rectangle's top-left corner to (<i>x1</i>, <i>y1</i>), and the coordinates of its bottom-right corner to (<i>x2</i>, <i>y2</i>).</p> <p><b>See also</b> <a href="qrectf.html#getCoords">getCoords</a>() and <a href="qrectf.html#setRect">setRect</a>().</p> <h3 class="fn"><a name="setHeight" />QRectF.setHeight (<i>self</i>, float <i>ah</i>)</h3><p>Sets the height of the rectangle to the given <i>height</i>. The bottom edge is changed, but not the top one.</p> <p><b>See also</b> <a href="qrectf.html#height">height</a>() and <a href="qrectf.html#setSize">setSize</a>().</p> <h3 class="fn"><a name="setLeft" />QRectF.setLeft (<i>self</i>, float <i>pos</i>)</h3><p>Sets the left edge of the rectangle to the given <i>x</i> coordinate. May change the width, but will never change the right edge of the rectangle.</p> <p>Equivalent to <a href="qrectf.html#setX">setX</a>().</p> <p><b>See also</b> <a href="qrectf.html#left">left</a>() and <a href="qrectf.html#moveLeft">moveLeft</a>().</p> <h3 class="fn"><a name="setRect" />QRectF.setRect (<i>self</i>, float <i>ax</i>, float <i>ay</i>, float <i>aaw</i>, float <i>aah</i>)</h3><p>Sets the coordinates of the rectangle's top-left corner to (<i>x</i>, <i>y</i>), and its size to the given <i>width</i> and <i>height</i>.</p> <p><b>See also</b> <a href="qrectf.html#getRect">getRect</a>() and <a href="qrectf.html#setCoords">setCoords</a>().</p> <h3 class="fn"><a name="setRight" />QRectF.setRight (<i>self</i>, float <i>pos</i>)</h3><p>Sets the right edge of the rectangle to the given <i>x</i> coordinate. May change the width, but will never change the left edge of the rectangle.</p> <p><b>See also</b> <a href="qrectf.html#right">right</a>() and <a href="qrectf.html#moveRight">moveRight</a>().</p> <h3 class="fn"><a name="setSize" />QRectF.setSize (<i>self</i>, <a href="qsizef.html">QSizeF</a> <i>s</i>)</h3><p>Sets the size of the rectangle to the given <i>size</i>. The top-left corner is not moved.</p> <p><b>See also</b> <a href="qrectf.html#size">size</a>(), <a href="qrectf.html#setWidth">setWidth</a>(), and <a href="qrectf.html#setHeight">setHeight</a>().</p> <h3 class="fn"><a name="setTop" />QRectF.setTop (<i>self</i>, float <i>pos</i>)</h3><p>Sets the top edge of the rectangle to the given <i>y</i> coordinate. May change the height, but will never change the bottom edge of the rectangle.</p> <p>Equivalent to <a href="qrectf.html#setY">setY</a>().</p> <p><b>See also</b> <a href="qrectf.html#top">top</a>() and <a href="qrectf.html#moveTop">moveTop</a>().</p> <h3 class="fn"><a name="setTopLeft" />QRectF.setTopLeft (<i>self</i>, <a href="qpointf.html">QPointF</a> <i>p</i>)</h3><p>Set the top-left corner of the rectangle to the given <i>position</i>. May change the size, but will never change the bottom-right corner of the rectangle.</p> <p><b>See also</b> <a href="qrectf.html#topLeft">topLeft</a>() and <a href="qrectf.html#moveTopLeft">moveTopLeft</a>().</p> <h3 class="fn"><a name="setTopRight" />QRectF.setTopRight (<i>self</i>, <a href="qpointf.html">QPointF</a> <i>p</i>)</h3><p>Set the top-right corner of the rectangle to the given <i>position</i>. May change the size, but will never change the bottom-left corner of the rectangle.</p> <p><b>See also</b> <a href="qrectf.html#topRight">topRight</a>() and <a href="qrectf.html#moveTopRight">moveTopRight</a>().</p> <h3 class="fn"><a name="setWidth" />QRectF.setWidth (<i>self</i>, float <i>aw</i>)</h3><p>Sets the width of the rectangle to the given <i>width</i>. The right edge is changed, but not the left one.</p> <p><b>See also</b> <a href="qrectf.html#width">width</a>() and <a href="qrectf.html#setSize">setSize</a>().</p> <h3 class="fn"><a name="setX" />QRectF.setX (<i>self</i>, float <i>pos</i>)</h3><p>Sets the left edge of the rectangle to the given <i>x</i> coordinate. May change the width, but will never change the right edge of the rectangle.</p> <p>Equivalent to <a href="qrectf.html#setLeft">setLeft</a>().</p> <p><b>See also</b> <a href="qrectf.html#x">x</a>(), <a href="qrectf.html#setY">setY</a>(), and <a href="qrectf.html#setTopLeft">setTopLeft</a>().</p> <h3 class="fn"><a name="setY" />QRectF.setY (<i>self</i>, float <i>pos</i>)</h3><p>Sets the top edge of the rectangle to the given <i>y</i> coordinate. May change the height, but will never change the bottom edge of the rectangle.</p> <p>Equivalent to <a href="qrectf.html#setTop">setTop</a>().</p> <p><b>See also</b> <a href="qrectf.html#y">y</a>(), <a href="qrectf.html#setX">setX</a>(), and <a href="qrectf.html#setTopLeft">setTopLeft</a>().</p> <h3 class="fn"><a name="size" /><a href="qsizef.html">QSizeF</a> QRectF.size (<i>self</i>)</h3><p>Returns the size of the rectangle.</p> <p><b>See also</b> <a href="qrectf.html#setSize">setSize</a>(), <a href="qrectf.html#width">width</a>(), and <a href="qrectf.html#height">height</a>().</p> <h3 class="fn"><a name="toAlignedRect" /><a href="qrect.html">QRect</a> QRectF.toAlignedRect (<i>self</i>)</h3><p>Returns a <a href="qrect.html">QRect</a> based on the values of this rectangle that is the smallest possible integer rectangle that completely contains this rectangle.</p> <p>This function was introduced in Qt 4.3.</p> <p><b>See also</b> <a href="qrectf.html#toRect">toRect</a>().</p> <h3 class="fn"><a name="top" />float QRectF.top (<i>self</i>)</h3><p>Returns the y-coordinate of the rectangle's top edge. Equivalent to <a href="qrectf.html#y">y</a>().</p> <p><b>See also</b> <a href="qrectf.html#setTop">setTop</a>(), <a href="qrectf.html#topLeft">topLeft</a>(), and <a href="qrectf.html#topRight">topRight</a>().</p> <h3 class="fn"><a name="topLeft" /><a href="qpointf.html">QPointF</a> QRectF.topLeft (<i>self</i>)</h3><p>Returns the position of the rectangle's top-left corner.</p> <p><b>See also</b> <a href="qrectf.html#setTopLeft">setTopLeft</a>(), <a href="qrectf.html#top">top</a>(), and <a href="qrectf.html#left">left</a>().</p> <h3 class="fn"><a name="topRight" /><a href="qpointf.html">QPointF</a> QRectF.topRight (<i>self</i>)</h3><p>Returns the position of the rectangle's top-right corner.</p> <p><b>See also</b> <a href="qrectf.html#setTopRight">setTopRight</a>(), <a href="qrectf.html#top">top</a>(), and <a href="qrectf.html#right">right</a>().</p> <h3 class="fn"><a name="toRect" /><a href="qrect.html">QRect</a> QRectF.toRect (<i>self</i>)</h3><p>Returns a <a href="qrect.html">QRect</a> based on the values of this rectangle. Note that the coordinates in the returned rectangle are rounded to the nearest integer.</p> <p><b>See also</b> <a href="qrectf.html#QRectF">QRectF</a>() and <a href="qrectf.html#toAlignedRect">toAlignedRect</a>().</p> <h3 class="fn"><a name="translate" />QRectF.translate (<i>self</i>, float <i>dx</i>, float <i>dy</i>)</h3><p>Moves the rectangle <i>dx</i> along the x-axis and <i>dy</i> along the y-axis, relative to the current position. Positive values move the rectangle to the right and downwards.</p> <p><b>See also</b> <a href="qrectf.html#moveTopLeft">moveTopLeft</a>(), <a href="qrectf.html#moveTo">moveTo</a>(), and <a href="qrectf.html#translated">translated</a>().</p> <h3 class="fn"><a name="translate-2" />QRectF.translate (<i>self</i>, <a href="qpointf.html">QPointF</a> <i>p</i>)</h3><p>This is an overloaded function.</p> <p>Moves the rectangle <i>offset</i>.<a href="qpointf.html#x">x()</a> along the x axis and <i>offset</i>.<a href="qpointf.html#y">y()</a> along the y axis, relative to the current position.</p> <h3 class="fn"><a name="translated" /><a href="qrectf.html">QRectF</a> QRectF.translated (<i>self</i>, float <i>dx</i>, float <i>dy</i>)</h3><p>Returns a copy of the rectangle that is translated <i>dx</i> along the x axis and <i>dy</i> along the y axis, relative to the current position. Positive values move the rectangle to the right and down.</p> <p><b>See also</b> <a href="qrectf.html#translate">translate</a>().</p> <h3 class="fn"><a name="translated-2" /><a href="qrectf.html">QRectF</a> QRectF.translated (<i>self</i>, <a href="qpointf.html">QPointF</a> <i>p</i>)</h3><p>This is an overloaded function.</p> <p>Returns a copy of the rectangle that is translated <i>offset</i>.<a href="qpointf.html#x">x()</a> along the x axis and <i>offset</i>.<a href="qpointf.html#y">y()</a> along the y axis, relative to the current position.</p> <h3 class="fn"><a name="unite" /><a href="qrectf.html">QRectF</a> QRectF.unite (<i>self</i>, <a href="qrectf.html">QRectF</a> <i>r</i>)</h3><h3 class="fn"><a name="united" /><a href="qrectf.html">QRectF</a> QRectF.united (<i>self</i>, <a href="qrectf.html">QRectF</a> <i>r</i>)</h3><p>Returns the bounding rectangle of this rectangle and the given <i>rectangle</i>.</p> <p class="centerAlign"><img alt="" src="images/qrect-unite.png" /></p> <p>This function was introduced in Qt 4.2.</p> <p><b>See also</b> <a href="qrectf.html#intersected">intersected</a>().</p> <h3 class="fn"><a name="width" />float QRectF.width (<i>self</i>)</h3><p>Returns the width of the rectangle.</p> <p><b>See also</b> <a href="qrectf.html#setWidth">setWidth</a>(), <a href="qrectf.html#height">height</a>(), and <a href="qrectf.html#size">size</a>().</p> <h3 class="fn"><a name="x" />float QRectF.x (<i>self</i>)</h3><p>Returns the x-coordinate of the rectangle's left edge. Equivalent to <a href="qrectf.html#left">left</a>().</p> <p><b>See also</b> <a href="qrectf.html#setX">setX</a>(), <a href="qrectf.html#y">y</a>(), and <a href="qrectf.html#topLeft">topLeft</a>().</p> <h3 class="fn"><a name="y" />float QRectF.y (<i>self</i>)</h3><p>Returns the y-coordinate of the rectangle's top edge. Equivalent to <a href="qrectf.html#top">top</a>().</p> <p><b>See also</b> <a href="qrectf.html#setY">setY</a>(), <a href="qrectf.html#x">x</a>(), and <a href="qrectf.html#topLeft">topLeft</a>().</p> <h3 class="fn"><a name="__and__" /><a href="qrectf.html">QRectF</a> QRectF.__and__ (<i>self</i>, <a href="qrectf.html">QRectF</a> <i>r</i>)</h3><h3 class="fn"><a name="__bool__" />int QRectF.__bool__ (<i>self</i>)</h3><h3 class="fn"><a name="__contains__" />int QRectF.__contains__ (<i>self</i>, <a href="qpointf.html">QPointF</a> <i>p</i>)</h3><h3 class="fn"><a name="__contains__-2" />int QRectF.__contains__ (<i>self</i>, <a href="qrectf.html">QRectF</a> <i>r</i>)</h3><h3 class="fn"><a name="__eq__" />bool QRectF.__eq__ (<i>self</i>, <a href="qrectf.html">QRectF</a> <i>r2</i>)</h3><h3 class="fn"><a name="__iand__" /><a href="qrectf.html">QRectF</a> QRectF.__iand__ (<i>self</i>, <a href="qrectf.html">QRectF</a> <i>r</i>)</h3><h3 class="fn"><a name="__ior__" /><a href="qrectf.html">QRectF</a> QRectF.__ior__ (<i>self</i>, <a href="qrectf.html">QRectF</a> <i>r</i>)</h3><h3 class="fn"><a name="__ne__" />bool QRectF.__ne__ (<i>self</i>, <a href="qrectf.html">QRectF</a> <i>r2</i>)</h3><h3 class="fn"><a name="__or__" /><a href="qrectf.html">QRectF</a> QRectF.__or__ (<i>self</i>, <a href="qrectf.html">QRectF</a> <i>r</i>)</h3><h3 class="fn"><a name="__repr__" />str QRectF.__repr__ (<i>self</i>)</h3><address><hr /><div align="center"><table border="0" cellspacing="0" width="100%"><tr class="address"><td align="left" width="25%">PyQt 4.10.3 for X11</td><td align="center" width="50%">Copyright © <a href="http://www.riverbankcomputing.com">Riverbank Computing Ltd</a> and <a href="http://www.qtsoftware.com">Nokia</a> 2012</td><td align="right" width="25%">Qt 4.8.5</td></tr></table></div></address></body></html>