Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-updates > by-pkgid > d5e62c01ae8d1e579463c6a871dd44bf > files > 3650

qtbase5-doc-5.12.6-2.mga7.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qgraphicsitem.cpp -->
  <title>QAbstractGraphicsShapeItem Class | Qt Widgets 5.12.6</title>
  <link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
  <script type="text/javascript">
    document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
    // loading style sheet breaks anchors that were jumped to before
    // so force jumping to anchor again
    setTimeout(function() {
        var anchor = location.hash;
        // need to jump to different anchor first (e.g. none)
        location.hash = "#";
        setTimeout(function() {
            location.hash = anchor;
        }, 0);
    }, 0);
  </script>
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="main">
    <div class="main-rounded">
      <div class="navigationbar">
        <table><tr>
<td >Qt 5.12</td><td ><a href="qtwidgets-index.html">Qt Widgets</a></td><td ><a href="qtwidgets-module.html">C++ Classes</a></td><td >QAbstractGraphicsShapeItem</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right"><a href="qtwidgets-index.html">Qt 5.12.6 Reference Documentation</a></td>
        </tr></table>
      </div>
    </div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<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="#reimplemented-public-functions">Reimplemented Public Functions</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">QAbstractGraphicsShapeItem Class</h1>
<!-- $$$QAbstractGraphicsShapeItem-brief -->
<p>The <a href="qabstractgraphicsshapeitem.html">QAbstractGraphicsShapeItem</a> class provides a common base for all path items. <a href="#details">More...</a></p>
<!-- @@@QAbstractGraphicsShapeItem -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign">   <span class="preprocessor">#include &lt;QAbstractGraphicsShapeItem&gt;</span>
</td></tr><tr><td class="memItemLeft rightAlign topAlign"> qmake:</td><td class="memItemRight bottomAlign"> QT += widgets</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Since:</td><td class="memItemRight bottomAlign">  Qt 4.2</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> <a href="qgraphicsitem.html">QGraphicsItem</a></td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherited By:</td><td class="memItemRight bottomAlign"> <p><a href="qgraphicsellipseitem.html">QGraphicsEllipseItem</a>, <a href="qgraphicspathitem.html">QGraphicsPathItem</a>, <a href="qgraphicspolygonitem.html">QGraphicsPolygonItem</a>, <a href="qgraphicsrectitem.html">QGraphicsRectItem</a>, and <a href="qgraphicssimpletextitem.html">QGraphicsSimpleTextItem</a></p>
</td></tr></table></div><ul>
<li><a href="qabstractgraphicsshapeitem-members.html">List of all members, including inherited members</a></li>
<li><a href="qabstractgraphicsshapeitem-obsolete.html">Obsolete members</a></li>
</ul>
<a name="public-functions"></a>
<h2 id="public-functions">Public Functions</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qabstractgraphicsshapeitem.html#QAbstractGraphicsShapeItem">QAbstractGraphicsShapeItem</a></b>(QGraphicsItem *<i>parent</i> = nullptr)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual </td><td class="memItemRight bottomAlign"><b><a href="qabstractgraphicsshapeitem.html#dtor.QAbstractGraphicsShapeItem">~QAbstractGraphicsShapeItem</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QBrush </td><td class="memItemRight bottomAlign"><b><a href="qabstractgraphicsshapeitem.html#brush">brush</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QPen </td><td class="memItemRight bottomAlign"><b><a href="qabstractgraphicsshapeitem.html#pen">pen</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qabstractgraphicsshapeitem.html#setBrush">setBrush</a></b>(const QBrush &amp;<i>brush</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qabstractgraphicsshapeitem.html#setPen">setPen</a></b>(const QPen &amp;<i>pen</i>)</td></tr>
</table></div>
<a name="reimplemented-public-functions"></a>
<h2 id="reimplemented-public-functions">Reimplemented Public Functions</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qabstractgraphicsshapeitem.html#isObscuredBy">isObscuredBy</a></b>(const QGraphicsItem *<i>item</i>) const override</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QPainterPath </td><td class="memItemRight bottomAlign"><b><a href="qabstractgraphicsshapeitem.html#opaqueArea">opaqueArea</a></b>() const override</td></tr>
</table></div>
<ul>
<li class="fn">176 public functions inherited from <a href="qgraphicsitem.html#public-functions">QGraphicsItem</a></li>
</ul>
<h3>Additional Inherited Members</h3>
<ul>
<li class="fn">24 protected functions inherited from <a href="qgraphicsitem.html#protected-functions">QGraphicsItem</a></li>
</ul>
<a name="details"></a>
<!-- $$$QAbstractGraphicsShapeItem-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
<p>The <a href="qabstractgraphicsshapeitem.html">QAbstractGraphicsShapeItem</a> class provides a common base for all path items.</p>
<p>This class does not fully implement an item by itself; in particular, it does not implement <a href="qgraphicsitem.html#boundingRect">boundingRect</a>() and <a href="qgraphicsitem.html#paint">paint</a>(), which are inherited by <a href="qgraphicsitem.html">QGraphicsItem</a>.</p>
<p>You can subclass this item to provide a simple base implementation of accessors for the item's pen and brush.</p>
</div>
<p><b>See also </b><a href="qgraphicsrectitem.html">QGraphicsRectItem</a>, <a href="qgraphicsellipseitem.html">QGraphicsEllipseItem</a>, <a href="qgraphicspathitem.html">QGraphicsPathItem</a>, <a href="qgraphicspolygonitem.html">QGraphicsPolygonItem</a>, <a href="qgraphicstextitem.html">QGraphicsTextItem</a>, <a href="qgraphicslineitem.html">QGraphicsLineItem</a>, <a href="qgraphicspixmapitem.html">QGraphicsPixmapItem</a>, and <a href="graphicsview.html">Graphics View Framework</a>.</p>
<!-- @@@QAbstractGraphicsShapeItem -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QAbstractGraphicsShapeItem[overload1]$$$QAbstractGraphicsShapeItemQGraphicsItem* -->
<h3 class="fn" id="QAbstractGraphicsShapeItem"><a name="QAbstractGraphicsShapeItem"></a>QAbstractGraphicsShapeItem::<span class="name">QAbstractGraphicsShapeItem</span>(<span class="type"><a href="qgraphicsitem.html#QGraphicsItem">QGraphicsItem</a></span> *<i>parent</i> = nullptr)</h3>
<p>Constructs a <a href="qabstractgraphicsshapeitem.html">QAbstractGraphicsShapeItem</a>. <i>parent</i> is passed to <a href="qgraphicsitem.html">QGraphicsItem</a>'s constructor.</p>
<!-- @@@QAbstractGraphicsShapeItem -->
<!-- $$$~QAbstractGraphicsShapeItem[overload1]$$$~QAbstractGraphicsShapeItem -->
<h3 class="fn" id="dtor.QAbstractGraphicsShapeItem"><a name="dtor.QAbstractGraphicsShapeItem"></a><code>[virtual] </code>QAbstractGraphicsShapeItem::<span class="name">~QAbstractGraphicsShapeItem</span>()</h3>
<p>Destroys a <a href="qabstractgraphicsshapeitem.html">QAbstractGraphicsShapeItem</a>.</p>
<!-- @@@~QAbstractGraphicsShapeItem -->
<!-- $$$brush[overload1]$$$brush -->
<h3 class="fn" id="brush"><a name="brush"></a><span class="type"><a href="../qtgui/qbrush.html">QBrush</a></span> QAbstractGraphicsShapeItem::<span class="name">brush</span>() const</h3>
<p>Returns the item's brush, or an empty brush if no brush has been set.</p>
<p><b>See also </b><a href="qabstractgraphicsshapeitem.html#setBrush">setBrush</a>().</p>
<!-- @@@brush -->
<!-- $$$isObscuredBy[overload1]$$$isObscuredByconstQGraphicsItem* -->
<h3 class="fn" id="isObscuredBy"><a name="isObscuredBy"></a><code>[override virtual] </code><span class="type">bool</span> QAbstractGraphicsShapeItem::<span class="name">isObscuredBy</span>(const <span class="type"><a href="qgraphicsitem.html#QGraphicsItem">QGraphicsItem</a></span> *<i>item</i>) const</h3>
<p>Reimplemented from <a href="qgraphicsitem.html#isObscuredBy">QGraphicsItem::isObscuredBy</a>().</p>
<!-- @@@isObscuredBy -->
<!-- $$$opaqueArea[overload1]$$$opaqueArea -->
<h3 class="fn" id="opaqueArea"><a name="opaqueArea"></a><code>[override virtual] </code><span class="type"><a href="../qtgui/qpainterpath.html">QPainterPath</a></span> QAbstractGraphicsShapeItem::<span class="name">opaqueArea</span>() const</h3>
<p>Reimplemented from <a href="qgraphicsitem.html#opaqueArea">QGraphicsItem::opaqueArea</a>().</p>
<!-- @@@opaqueArea -->
<!-- $$$pen[overload1]$$$pen -->
<h3 class="fn" id="pen"><a name="pen"></a><span class="type"><a href="../qtgui/qpen.html">QPen</a></span> QAbstractGraphicsShapeItem::<span class="name">pen</span>() const</h3>
<p>Returns the item's pen. If no pen has been set, this function returns QPen(), a default black solid line pen with 1 width.</p>
<p><b>See also </b><a href="qabstractgraphicsshapeitem.html#setPen">setPen</a>().</p>
<!-- @@@pen -->
<!-- $$$setBrush[overload1]$$$setBrushconstQBrush& -->
<h3 class="fn" id="setBrush"><a name="setBrush"></a><span class="type">void</span> QAbstractGraphicsShapeItem::<span class="name">setBrush</span>(const <span class="type"><a href="../qtgui/qbrush.html">QBrush</a></span> &amp;<i>brush</i>)</h3>
<p>Sets the item's brush to <i>brush</i>.</p>
<p>The item's brush is used to fill the item.</p>
<p>If you use a brush with a <a href="../qtgui/qgradient.html">QGradient</a>, the gradient is relative to the item's coordinate system.</p>
<p><b>See also </b><a href="qabstractgraphicsshapeitem.html#brush">brush</a>().</p>
<!-- @@@setBrush -->
<!-- $$$setPen[overload1]$$$setPenconstQPen& -->
<h3 class="fn" id="setPen"><a name="setPen"></a><span class="type">void</span> QAbstractGraphicsShapeItem::<span class="name">setPen</span>(const <span class="type"><a href="../qtgui/qpen.html">QPen</a></span> &amp;<i>pen</i>)</h3>
<p>Sets the pen for this item to <i>pen</i>.</p>
<p>The pen is used to draw the item's outline.</p>
<p><b>See also </b><a href="qabstractgraphicsshapeitem.html#pen">pen</a>().</p>
<!-- @@@setPen -->
</div>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> 2019 The Qt Company Ltd.
   Documentation contributions included herein are the copyrights of
   their respective owners.<br/>    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.<br/>    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. </p>
</div>
</body>
</html>