Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-updates > by-pkgid > 845e36bb3ecce380666d628d88446962 > files > 101

qtdatavis3d5-doc-5.12.6-1.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" />
<!-- qbardataproxy.cpp -->
  <title>QBarDataProxy Class | Qt Data Visualization 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="qtdatavisualization-index.html">Qt Data Visualization</a></td><td ><a href="qtdatavisualization-module.html">C++ Classes</a></td><td >QBarDataProxy</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right"><a href="qtdatavisualization-index.html">Qt Data Visualization | Commercial or GPLv3</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="#properties">Properties</a></li>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#signals">Signals</a></li>
<li class="level1"><a href="#static-public-members">Static Public Members</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>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">QBarDataProxy Class</h1>
<!-- $$$QBarDataProxy-brief -->
<p>The <a href="qbardataproxy.html">QBarDataProxy</a> class is the data proxy for a 3D bars graph. <a href="#details">More...</a></p>
<!-- @@@QBarDataProxy -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign">   <span class="preprocessor">#include &lt;QBarDataProxy&gt;</span>
</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Since:</td><td class="memItemRight bottomAlign">  QtDataVisualization 1.0</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Instantiated By:</td><td class="memItemRight bottomAlign"> <a href="qml-qtdatavisualization-bardataproxy.html">BarDataProxy</a></td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> <a href="qabstractdataproxy.html">QAbstractDataProxy</a></td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherited By:</td><td class="memItemRight bottomAlign"> <p><a href="qitemmodelbardataproxy.html">QItemModelBarDataProxy</a></p>
</td></tr></table></div><ul>
<li><a href="qbardataproxy-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="properties"></a>
<h2 id="properties">Properties</h2>
<ul>
<li class="fn"><b><a href="qbardataproxy.html#columnLabels-prop">columnLabels</a></b> : QStringList</li>
<li class="fn"><b><a href="qbardataproxy.html#rowCount-prop">rowCount</a></b> : const int</li>
<li class="fn"><b><a href="qbardataproxy.html#rowLabels-prop">rowLabels</a></b> : QStringList</li>
<li class="fn"><b><a href="qbardataproxy.html#series-prop">series</a></b> : QBar3DSeries* const</li>
</ul>
<ul>
<li class="fn">1 property inherited from <a href="qabstractdataproxy.html#properties">QAbstractDataProxy</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="qbardataproxy.html#QBarDataProxy">QBarDataProxy</a></b>(QObject *<i>parent</i> = nullptr)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual </td><td class="memItemRight bottomAlign"><b><a href="qbardataproxy.html#dtor.QBarDataProxy">~QBarDataProxy</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qbardataproxy.html#addRow">addRow</a></b>(QBarDataRow *<i>row</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qbardataproxy.html#addRow-1">addRow</a></b>(QBarDataRow *<i>row</i>, const QString &amp;<i>label</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qbardataproxy.html#addRows">addRows</a></b>(const QBarDataArray &amp;<i>rows</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qbardataproxy.html#addRows-1">addRows</a></b>(const QBarDataArray &amp;<i>rows</i>, const QStringList &amp;<i>labels</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> const QBarDataArray *</td><td class="memItemRight bottomAlign"><b><a href="qbardataproxy.html#array">array</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QStringList </td><td class="memItemRight bottomAlign"><b><a href="qbardataproxy.html#columnLabels-prop">columnLabels</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qbardataproxy.html#insertRow">insertRow</a></b>(int <i>rowIndex</i>, QBarDataRow *<i>row</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qbardataproxy.html#insertRow-1">insertRow</a></b>(int <i>rowIndex</i>, QBarDataRow *<i>row</i>, const QString &amp;<i>label</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qbardataproxy.html#insertRows">insertRows</a></b>(int <i>rowIndex</i>, const QBarDataArray &amp;<i>rows</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qbardataproxy.html#insertRows-1">insertRows</a></b>(int <i>rowIndex</i>, const QBarDataArray &amp;<i>rows</i>, const QStringList &amp;<i>labels</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> const QBarDataItem *</td><td class="memItemRight bottomAlign"><b><a href="qbardataproxy.html#itemAt">itemAt</a></b>(int <i>rowIndex</i>, int <i>columnIndex</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> const QBarDataItem *</td><td class="memItemRight bottomAlign"><b><a href="qbardataproxy.html#itemAt-1">itemAt</a></b>(const QPoint &amp;<i>position</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qbardataproxy.html#removeRows">removeRows</a></b>(int <i>rowIndex</i>, int <i>removeCount</i>, bool <i>removeLabels</i> = true)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qbardataproxy.html#resetArray">resetArray</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qbardataproxy.html#resetArray-1">resetArray</a></b>(QBarDataArray *<i>newArray</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qbardataproxy.html#resetArray-2">resetArray</a></b>(QBarDataArray *<i>newArray</i>, const QStringList &amp;<i>rowLabels</i>, const QStringList &amp;<i>columnLabels</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> const QBarDataRow *</td><td class="memItemRight bottomAlign"><b><a href="qbardataproxy.html#rowAt">rowAt</a></b>(int <i>rowIndex</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qbardataproxy.html#rowCount-prop">rowCount</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QStringList </td><td class="memItemRight bottomAlign"><b><a href="qbardataproxy.html#rowLabels-prop">rowLabels</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QBar3DSeries *</td><td class="memItemRight bottomAlign"><b><a href="qbardataproxy.html#series-prop">series</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qbardataproxy.html#columnLabels-prop">setColumnLabels</a></b>(const QStringList &amp;<i>labels</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qbardataproxy.html#setItem">setItem</a></b>(int <i>rowIndex</i>, int <i>columnIndex</i>, const QBarDataItem &amp;<i>item</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qbardataproxy.html#setItem-1">setItem</a></b>(const QPoint &amp;<i>position</i>, const QBarDataItem &amp;<i>item</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qbardataproxy.html#setRow">setRow</a></b>(int <i>rowIndex</i>, QBarDataRow *<i>row</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qbardataproxy.html#setRow-1">setRow</a></b>(int <i>rowIndex</i>, QBarDataRow *<i>row</i>, const QString &amp;<i>label</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qbardataproxy.html#rowLabels-prop">setRowLabels</a></b>(const QStringList &amp;<i>labels</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qbardataproxy.html#setRows">setRows</a></b>(int <i>rowIndex</i>, const QBarDataArray &amp;<i>rows</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qbardataproxy.html#setRows-1">setRows</a></b>(int <i>rowIndex</i>, const QBarDataArray &amp;<i>rows</i>, const QStringList &amp;<i>labels</i>)</td></tr>
</table></div>
<ul>
<li class="fn">1 public function inherited from <a href="qabstractdataproxy.html#public-functions">QAbstractDataProxy</a></li>
</ul>
<a name="signals"></a>
<h2 id="signals">Signals</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qbardataproxy.html#arrayReset">arrayReset</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qbardataproxy.html#columnLabels-prop">columnLabelsChanged</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qbardataproxy.html#itemChanged">itemChanged</a></b>(int <i>rowIndex</i>, int <i>columnIndex</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qbardataproxy.html#rowCount-prop">rowCountChanged</a></b>(int <i>count</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qbardataproxy.html#rowLabels-prop">rowLabelsChanged</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qbardataproxy.html#rowsAdded">rowsAdded</a></b>(int <i>startIndex</i>, int <i>count</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qbardataproxy.html#rowsChanged">rowsChanged</a></b>(int <i>startIndex</i>, int <i>count</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qbardataproxy.html#rowsInserted">rowsInserted</a></b>(int <i>startIndex</i>, int <i>count</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qbardataproxy.html#rowsRemoved">rowsRemoved</a></b>(int <i>startIndex</i>, int <i>count</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qbardataproxy.html#series-prop">seriesChanged</a></b>(QBar3DSeries *<i>series</i>)</td></tr>
</table></div>
<a name="static-public-members"></a>
<h2 id="static-public-members">Static Public Members</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> const QMetaObject </td><td class="memItemRight bottomAlign"><b><a href="qbardataproxy.html#staticMetaObject-var">staticMetaObject</a></b></td></tr>
</table></div>
<a name="related-non-members"></a>
<h2 id="related-non-members">Related Non-Members</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> typedef </td><td class="memItemRight bottomAlign"><b><a href="qbardataproxy.html#QBarDataArray-typedef">QBarDataArray</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> typedef </td><td class="memItemRight bottomAlign"><b><a href="qbardataproxy.html#QBarDataRow-typedef">QBarDataRow</a></b></td></tr>
</table></div>
<a name="details"></a>
<!-- $$$QBarDataProxy-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
<p>The <a href="qbardataproxy.html">QBarDataProxy</a> class is the data proxy for a 3D bars graph.</p>
<p>A bar data proxy handles adding, inserting, changing, and removing rows of data.</p>
<p>The data array is a list of vectors (rows) of <a href="qbardataitem.html">QBarDataItem</a> instances. Each row can contain a different number of items or even be null.</p>
<p><a href="qbardataproxy.html">QBarDataProxy</a> takes ownership of all QtDataVisualization::QBarDataRow objects passed to it, whether directly or in a QtDataVisualization::QBarDataArray container. If bar data row pointers are used to directly modify data after adding the array to the proxy, the appropriate signal must be emitted to update the graph.</p>
<p><a href="qbardataproxy.html">QBarDataProxy</a> optionally keeps track of row and column labels, which <a href="qcategory3daxis.html">QCategory3DAxis</a> can utilize to show axis labels. The row and column labels are stored in a separate array from the data and row manipulation methods provide alternate versions that do not affect the row labels. This enables the option of having row labels that relate to the position of the data in the array rather than the data itself.</p>
</div>
<p><b>See also </b><a href="qtdatavisualization-data-handling.html">Qt Data Visualization Data Handling</a>.</p>
<!-- @@@QBarDataProxy -->
<div class="prop">
<h2>Property Documentation</h2>
<!-- $$$columnLabels-prop$$$columnLabels$$$setColumnLabelsconstQStringList&$$$columnLabelsChanged -->
<h3 class="fn" id="columnLabels-prop"><a name="columnLabels-prop"></a><span class="name">columnLabels</span> : <span class="type">QStringList</span></h3>
<p>This property holds the optional column labels for the array.</p>
<p>Indexes in this array match column indexes in rows. If the list is shorter than the longest row, all columns will not get labels.</p>
<p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QStringList </td><td class="memItemRight bottomAlign"><span class="name"><b>columnLabels</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setColumnLabels</b></span>(const QStringList &amp;<i>labels</i>)</td></tr>
</table></div>
<p><b>Notifier signal:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>columnLabelsChanged</b></span>()</td></tr>
</table></div>
<!-- @@@columnLabels -->
<!-- $$$rowCount-prop$$$rowCount$$$rowCountChangedint -->
<h3 class="fn" id="rowCount-prop"><a name="rowCount-prop"></a><span class="name">rowCount</span> : const <span class="type">int</span></h3>
<p>This property holds the number of rows in the array.</p>
<p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><span class="name"><b>rowCount</b></span>() const</td></tr>
</table></div>
<p><b>Notifier signal:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>rowCountChanged</b></span>(int <i>count</i>)</td></tr>
</table></div>
<!-- @@@rowCount -->
<!-- $$$rowLabels-prop$$$rowLabels$$$setRowLabelsconstQStringList&$$$rowLabelsChanged -->
<h3 class="fn" id="rowLabels-prop"><a name="rowLabels-prop"></a><span class="name">rowLabels</span> : <span class="type">QStringList</span></h3>
<p>This property holds the optional row labels for the array.</p>
<p>Indexes in this array match the row indexes in the data array. If the list is shorter than the number of rows, all rows will not get labels.</p>
<p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QStringList </td><td class="memItemRight bottomAlign"><span class="name"><b>rowLabels</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRowLabels</b></span>(const QStringList &amp;<i>labels</i>)</td></tr>
</table></div>
<p><b>Notifier signal:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>rowLabelsChanged</b></span>()</td></tr>
</table></div>
<!-- @@@rowLabels -->
<!-- $$$series-prop$$$series$$$seriesChangedQBar3DSeries* -->
<h3 class="fn" id="series-prop"><a name="series-prop"></a><span class="name">series</span> : <span class="type"><a href="qbar3dseries.html">QBar3DSeries</a></span>* const</h3>
<p>This property holds the series this proxy is attached to.</p>
<p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QBar3DSeries *</td><td class="memItemRight bottomAlign"><span class="name"><b>series</b></span>() const</td></tr>
</table></div>
<p><b>Notifier signal:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>seriesChanged</b></span>(QBar3DSeries *<i>series</i>)</td></tr>
</table></div>
<!-- @@@series -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QBarDataProxy[overload1]$$$QBarDataProxyQObject* -->
<h3 class="fn" id="QBarDataProxy"><a name="QBarDataProxy"></a>QBarDataProxy::<span class="name">QBarDataProxy</span>(<span class="type">QObject</span> *<i>parent</i> = nullptr)</h3>
<p>Constructs a bar data proxy with the given <i>parent</i>.</p>
<!-- @@@QBarDataProxy -->
<!-- $$$~QBarDataProxy[overload1]$$$~QBarDataProxy -->
<h3 class="fn" id="dtor.QBarDataProxy"><a name="dtor.QBarDataProxy"></a><code>[virtual] </code>QBarDataProxy::<span class="name">~QBarDataProxy</span>()</h3>
<p>Deletes the bar data proxy.</p>
<!-- @@@~QBarDataProxy -->
<!-- $$$addRow[overload1]$$$addRowQBarDataRow* -->
<h3 class="fn" id="addRow"><a name="addRow"></a><span class="type">int</span> QBarDataProxy::<span class="name">addRow</span>(<span class="type"><a href="qbardataproxy.html#QBarDataRow-typedef">QBarDataRow</a></span> *<i>row</i>)</h3>
<p>Adds the new row <i>row</i> to the end of an array. Existing row labels are not affected.</p>
<p>Returns the index of the added row.</p>
<!-- @@@addRow -->
<!-- $$$addRow$$$addRowQBarDataRow*constQString& -->
<h3 class="fn" id="addRow-1"><a name="addRow-1"></a><span class="type">int</span> QBarDataProxy::<span class="name">addRow</span>(<span class="type"><a href="qbardataproxy.html#QBarDataRow-typedef">QBarDataRow</a></span> *<i>row</i>, const <span class="type">QString</span> &amp;<i>label</i>)</h3>
<p>Adds a the new row <i>row</i> with the label <i>label</i> to the end of an array.</p>
<p>Returns the index of the added row.</p>
<!-- @@@addRow -->
<!-- $$$addRows[overload1]$$$addRowsconstQBarDataArray& -->
<h3 class="fn" id="addRows"><a name="addRows"></a><span class="type">int</span> QBarDataProxy::<span class="name">addRows</span>(const <span class="type"><a href="qbardataproxy.html#QBarDataArray-typedef">QBarDataArray</a></span> &amp;<i>rows</i>)</h3>
<p>Adds the new <i>rows</i> to the end of an array. Existing row labels are not affected.</p>
<p>Returns the index of the first added row.</p>
<!-- @@@addRows -->
<!-- $$$addRows$$$addRowsconstQBarDataArray&constQStringList& -->
<h3 class="fn" id="addRows-1"><a name="addRows-1"></a><span class="type">int</span> QBarDataProxy::<span class="name">addRows</span>(const <span class="type"><a href="qbardataproxy.html#QBarDataArray-typedef">QBarDataArray</a></span> &amp;<i>rows</i>, const <span class="type">QStringList</span> &amp;<i>labels</i>)</h3>
<p>Adds the new <i>rows</i> with <i>labels</i> to the end of the array.</p>
<p>Returns the index of the first added row.</p>
<!-- @@@addRows -->
<!-- $$$array[overload1]$$$array -->
<h3 class="fn" id="array"><a name="array"></a>const <span class="type"><a href="qbardataproxy.html#QBarDataArray-typedef">QBarDataArray</a></span> *QBarDataProxy::<span class="name">array</span>() const</h3>
<p>Returns the pointer to the data array.</p>
<!-- @@@array -->
<!-- $$$arrayReset[overload1]$$$arrayReset -->
<h3 class="fn" id="arrayReset"><a name="arrayReset"></a><code>[signal] </code><span class="type">void</span> QBarDataProxy::<span class="name">arrayReset</span>()</h3>
<p>This signal is emitted when the data array is reset. If the contents of the whole array are changed without calling <a href="qbardataproxy.html#resetArray">resetArray</a>(), this signal needs to be emitted to update the graph.</p>
<!-- @@@arrayReset -->
<!-- $$$insertRow[overload1]$$$insertRowintQBarDataRow* -->
<h3 class="fn" id="insertRow"><a name="insertRow"></a><span class="type">void</span> QBarDataProxy::<span class="name">insertRow</span>(<span class="type">int</span> <i>rowIndex</i>, <span class="type"><a href="qbardataproxy.html#QBarDataRow-typedef">QBarDataRow</a></span> *<i>row</i>)</h3>
<p>Inserts the new row <i>row</i> into <i>rowIndex</i>. If <i>rowIndex</i> is equal to the array size, the rows are added to the end of the array. The existing row labels are not affected.</p>
<p><b>Note: </b>The row labels array will be out of sync with the row array after this call if there were labeled rows beyond the inserted row.</p><!-- @@@insertRow -->
<!-- $$$insertRow$$$insertRowintQBarDataRow*constQString& -->
<h3 class="fn" id="insertRow-1"><a name="insertRow-1"></a><span class="type">void</span> QBarDataProxy::<span class="name">insertRow</span>(<span class="type">int</span> <i>rowIndex</i>, <span class="type"><a href="qbardataproxy.html#QBarDataRow-typedef">QBarDataRow</a></span> *<i>row</i>, const <span class="type">QString</span> &amp;<i>label</i>)</h3>
<p>Inserts the new row <i>row</i> with the label <i>label</i> into <i>rowIndex</i>. If <i>rowIndex</i> is equal to array size, rows are added to the end of the array.</p>
<!-- @@@insertRow -->
<!-- $$$insertRows[overload1]$$$insertRowsintconstQBarDataArray& -->
<h3 class="fn" id="insertRows"><a name="insertRows"></a><span class="type">void</span> QBarDataProxy::<span class="name">insertRows</span>(<span class="type">int</span> <i>rowIndex</i>, const <span class="type"><a href="qbardataproxy.html#QBarDataArray-typedef">QBarDataArray</a></span> &amp;<i>rows</i>)</h3>
<p>Inserts new <i>rows</i> into <i>rowIndex</i>. If <i>rowIndex</i> is equal to the array size, the rows are added to the end of the array. The existing row labels are not affected.</p>
<p><b>Note: </b>The row labels array will be out of sync with the row array after this call if there were labeled rows beyond the inserted rows.</p><!-- @@@insertRows -->
<!-- $$$insertRows$$$insertRowsintconstQBarDataArray&constQStringList& -->
<h3 class="fn" id="insertRows-1"><a name="insertRows-1"></a><span class="type">void</span> QBarDataProxy::<span class="name">insertRows</span>(<span class="type">int</span> <i>rowIndex</i>, const <span class="type"><a href="qbardataproxy.html#QBarDataArray-typedef">QBarDataArray</a></span> &amp;<i>rows</i>, const <span class="type">QStringList</span> &amp;<i>labels</i>)</h3>
<p>Inserts new <i>rows</i> with <i>labels</i> into <i>rowIndex</i>. If <i>rowIndex</i> is equal to the array size, the rows are added to the end of the array.</p>
<!-- @@@insertRows -->
<!-- $$$itemAt[overload1]$$$itemAtintint -->
<h3 class="fn" id="itemAt"><a name="itemAt"></a>const <span class="type"><a href="qbardataitem.html">QBarDataItem</a></span> *QBarDataProxy::<span class="name">itemAt</span>(<span class="type">int</span> <i>rowIndex</i>, <span class="type">int</span> <i>columnIndex</i>) const</h3>
<p>Returns the pointer to the item at the position specified by <i>rowIndex</i> and <i>columnIndex</i>. It is guaranteed to be valid only until the next call that modifies data.</p>
<!-- @@@itemAt -->
<!-- $$$itemAt$$$itemAtconstQPoint& -->
<h3 class="fn" id="itemAt-1"><a name="itemAt-1"></a>const <span class="type"><a href="qbardataitem.html">QBarDataItem</a></span> *QBarDataProxy::<span class="name">itemAt</span>(const <span class="type">QPoint</span> &amp;<i>position</i>) const</h3>
<p>Returns the pointer to the item at the position <i>position</i>. The x-value of <i>position</i> indicates the row and the y-value indicates the column. The item is guaranteed to be valid only until the next call that modifies data.</p>
<!-- @@@itemAt -->
<!-- $$$itemChanged[overload1]$$$itemChangedintint -->
<h3 class="fn" id="itemChanged"><a name="itemChanged"></a><code>[signal] </code><span class="type">void</span> QBarDataProxy::<span class="name">itemChanged</span>(<span class="type">int</span> <i>rowIndex</i>, <span class="type">int</span> <i>columnIndex</i>)</h3>
<p>This signal is emitted when the item at the position specified by <i>rowIndex</i> and <i>columnIndex</i> changes. If the item is changed in the array without calling <a href="qbardataproxy.html#setItem">setItem</a>(), this signal needs to be emitted to update the graph.</p>
<!-- @@@itemChanged -->
<!-- $$$removeRows[overload1]$$$removeRowsintintbool -->
<h3 class="fn" id="removeRows"><a name="removeRows"></a><span class="type">void</span> QBarDataProxy::<span class="name">removeRows</span>(<span class="type">int</span> <i>rowIndex</i>, <span class="type">int</span> <i>removeCount</i>, <span class="type">bool</span> <i>removeLabels</i> = true)</h3>
<p>Removes the number of rows specified by <i>removeCount</i> starting at the position <i>rowIndex</i>. Attempting to remove rows past the end of the array does nothing. If <i>removeLabels</i> is <code>true</code>, the corresponding row labels are also removed. Otherwise, the row labels are not affected.</p>
<p><b>Note: </b>If <i>removeLabels</i> is <code>false</code>, the row labels array will be out of sync with the row array if there are labeled rows beyond the removed rows.</p><!-- @@@removeRows -->
<!-- $$$resetArray[overload1]$$$resetArray -->
<h3 class="fn" id="resetArray"><a name="resetArray"></a><span class="type">void</span> QBarDataProxy::<span class="name">resetArray</span>()</h3>
<p>Clears the existing array and row and column labels.</p>
<!-- @@@resetArray -->
<!-- $$$resetArray$$$resetArrayQBarDataArray* -->
<h3 class="fn" id="resetArray-1"><a name="resetArray-1"></a><span class="type">void</span> QBarDataProxy::<span class="name">resetArray</span>(<span class="type"><a href="qbardataproxy.html#QBarDataArray-typedef">QBarDataArray</a></span> *<i>newArray</i>)</h3>
<p>Takes ownership of the array <i>newArray</i>. Clears the existing array if the new array differs from it. If the arrays are the same, this function just triggers the <a href="qbardataproxy.html#arrayReset">arrayReset</a>() signal.</p>
<p>Passing a null array deletes the old array and creates a new empty array. Row and column labels are not affected.</p>
<!-- @@@resetArray -->
<!-- $$$resetArray$$$resetArrayQBarDataArray*constQStringList&constQStringList& -->
<h3 class="fn" id="resetArray-2"><a name="resetArray-2"></a><span class="type">void</span> QBarDataProxy::<span class="name">resetArray</span>(<span class="type"><a href="qbardataproxy.html#QBarDataArray-typedef">QBarDataArray</a></span> *<i>newArray</i>, const <span class="type">QStringList</span> &amp;<i>rowLabels</i>, const <span class="type">QStringList</span> &amp;<i>columnLabels</i>)</h3>
<p>Takes ownership of the array <i>newArray</i>. Clears the existing array if the new array differs from it. If the arrays are the same, this function just triggers the <a href="qbardataproxy.html#arrayReset">arrayReset</a>() signal.</p>
<p>Passing a null array deletes the old array and creates a new empty array.</p>
<p>The <i>rowLabels</i> and <i>columnLabels</i> lists specify the new labels for rows and columns.</p>
<!-- @@@resetArray -->
<!-- $$$rowAt[overload1]$$$rowAtint -->
<h3 class="fn" id="rowAt"><a name="rowAt"></a>const <span class="type"><a href="qbardataproxy.html#QBarDataRow-typedef">QBarDataRow</a></span> *QBarDataProxy::<span class="name">rowAt</span>(<span class="type">int</span> <i>rowIndex</i>) const</h3>
<p>Returns the pointer to the row at the position <i>rowIndex</i>. It is guaranteed to be valid only until the next call that modifies data.</p>
<!-- @@@rowAt -->
<!-- $$$rowsAdded[overload1]$$$rowsAddedintint -->
<h3 class="fn" id="rowsAdded"><a name="rowsAdded"></a><code>[signal] </code><span class="type">void</span> QBarDataProxy::<span class="name">rowsAdded</span>(<span class="type">int</span> <i>startIndex</i>, <span class="type">int</span> <i>count</i>)</h3>
<p>This signal is emitted when the number of rows specified by <i>count</i> is added starting at the position <i>startIndex</i>. If rows are added to the array without calling <a href="qbardataproxy.html#addRow">addRow</a>() or <a href="qbardataproxy.html#addRows">addRows</a>(), this signal needs to be emitted to update the graph.</p>
<!-- @@@rowsAdded -->
<!-- $$$rowsChanged[overload1]$$$rowsChangedintint -->
<h3 class="fn" id="rowsChanged"><a name="rowsChanged"></a><code>[signal] </code><span class="type">void</span> QBarDataProxy::<span class="name">rowsChanged</span>(<span class="type">int</span> <i>startIndex</i>, <span class="type">int</span> <i>count</i>)</h3>
<p>This signal is emitted when the number of rows specified by <i>count</i> is changed starting at the position <i>startIndex</i>. If rows are changed in the array without calling <a href="qbardataproxy.html#setRow">setRow</a>() or <a href="qbardataproxy.html#setRows">setRows</a>(), this signal needs to be emitted to update the graph.</p>
<!-- @@@rowsChanged -->
<!-- $$$rowsInserted[overload1]$$$rowsInsertedintint -->
<h3 class="fn" id="rowsInserted"><a name="rowsInserted"></a><code>[signal] </code><span class="type">void</span> QBarDataProxy::<span class="name">rowsInserted</span>(<span class="type">int</span> <i>startIndex</i>, <span class="type">int</span> <i>count</i>)</h3>
<p>This signal is emitted when the number of rows specified by <i>count</i> is inserted at the position <i>startIndex</i>.</p>
<p>If rows are inserted into the array without calling <a href="qbardataproxy.html#insertRow">insertRow</a>() or <a href="qbardataproxy.html#insertRows">insertRows</a>(), this signal needs to be emitted to update the graph.</p>
<!-- @@@rowsInserted -->
<!-- $$$rowsRemoved[overload1]$$$rowsRemovedintint -->
<h3 class="fn" id="rowsRemoved"><a name="rowsRemoved"></a><code>[signal] </code><span class="type">void</span> QBarDataProxy::<span class="name">rowsRemoved</span>(<span class="type">int</span> <i>startIndex</i>, <span class="type">int</span> <i>count</i>)</h3>
<p>This signal is emitted when the number of rows specified by <i>count</i> is removed starting at the position <i>startIndex</i>.</p>
<p>The index is the current array size if the rows were removed from the end of the array. If rows are removed from the array without calling <a href="qbardataproxy.html#removeRows">removeRows</a>(), this signal needs to be emitted to update the graph.</p>
<!-- @@@rowsRemoved -->
<!-- $$$setItem[overload1]$$$setItemintintconstQBarDataItem& -->
<h3 class="fn" id="setItem"><a name="setItem"></a><span class="type">void</span> QBarDataProxy::<span class="name">setItem</span>(<span class="type">int</span> <i>rowIndex</i>, <span class="type">int</span> <i>columnIndex</i>, const <span class="type"><a href="qbardataitem.html">QBarDataItem</a></span> &amp;<i>item</i>)</h3>
<p>Changes a single item at the position specified by <i>rowIndex</i> and <i>columnIndex</i> to the item <i>item</i>.</p>
<!-- @@@setItem -->
<!-- $$$setItem$$$setItemconstQPoint&constQBarDataItem& -->
<h3 class="fn" id="setItem-1"><a name="setItem-1"></a><span class="type">void</span> QBarDataProxy::<span class="name">setItem</span>(const <span class="type">QPoint</span> &amp;<i>position</i>, const <span class="type"><a href="qbardataitem.html">QBarDataItem</a></span> &amp;<i>item</i>)</h3>
<p>Changes a single item at the position <i>position</i> to the item <i>item</i>. The x-value of <i>position</i> indicates the row and the y-value indicates the column.</p>
<!-- @@@setItem -->
<!-- $$$setRow[overload1]$$$setRowintQBarDataRow* -->
<h3 class="fn" id="setRow"><a name="setRow"></a><span class="type">void</span> QBarDataProxy::<span class="name">setRow</span>(<span class="type">int</span> <i>rowIndex</i>, <span class="type"><a href="qbardataproxy.html#QBarDataRow-typedef">QBarDataRow</a></span> *<i>row</i>)</h3>
<p>Changes an existing row by replacing the row at the position <i>rowIndex</i> with the new row specified by <i>row</i>. The new row can be the same as the existing row already stored at <i>rowIndex</i>. Existing row labels are not affected.</p>
<!-- @@@setRow -->
<!-- $$$setRow$$$setRowintQBarDataRow*constQString& -->
<h3 class="fn" id="setRow-1"><a name="setRow-1"></a><span class="type">void</span> QBarDataProxy::<span class="name">setRow</span>(<span class="type">int</span> <i>rowIndex</i>, <span class="type"><a href="qbardataproxy.html#QBarDataRow-typedef">QBarDataRow</a></span> *<i>row</i>, const <span class="type">QString</span> &amp;<i>label</i>)</h3>
<p>Changes an existing row by replacing the row at the position <i>rowIndex</i> with the new row specified by <i>row</i>. The new row can be the same as the existing row already stored at <i>rowIndex</i>. Changes the row label to <i>label</i>.</p>
<!-- @@@setRow -->
<!-- $$$setRows[overload1]$$$setRowsintconstQBarDataArray& -->
<h3 class="fn" id="setRows"><a name="setRows"></a><span class="type">void</span> QBarDataProxy::<span class="name">setRows</span>(<span class="type">int</span> <i>rowIndex</i>, const <span class="type"><a href="qbardataproxy.html#QBarDataArray-typedef">QBarDataArray</a></span> &amp;<i>rows</i>)</h3>
<p>Changes existing rows by replacing the rows starting at the position <i>rowIndex</i> with the new rows specifies by <i>rows</i>. Existing row labels are not affected. The rows in the <i>rows</i> array can be the same as the existing rows already stored at <i>rowIndex</i>.</p>
<!-- @@@setRows -->
<!-- $$$setRows$$$setRowsintconstQBarDataArray&constQStringList& -->
<h3 class="fn" id="setRows-1"><a name="setRows-1"></a><span class="type">void</span> QBarDataProxy::<span class="name">setRows</span>(<span class="type">int</span> <i>rowIndex</i>, const <span class="type"><a href="qbardataproxy.html#QBarDataArray-typedef">QBarDataArray</a></span> &amp;<i>rows</i>, const <span class="type">QStringList</span> &amp;<i>labels</i>)</h3>
<p>Changes existing rows by replacing the rows starting at the position <i>rowIndex</i> with the new rows specifies by <i>rows</i>. The row labels are changed to <i>labels</i>. The rows in the <i>rows</i> array can be the same as the existing rows already stored at <i>rowIndex</i>.</p>
<!-- @@@setRows -->
</div>
<div class="relnonmem">
<h2>Related Non-Members</h2>
<!-- $$$QBarDataArray -->
<h3 class="fn" id="QBarDataArray-typedef"><a name="QBarDataArray-typedef"></a>typedef <span class="name">QBarDataArray</span></h3>
<p>A list of pointers to <a href="qbardataproxy.html#QBarDataRow-typedef">QBarDataRow</a> objects.</p>
<!-- @@@QBarDataArray -->
<!-- $$$QBarDataRow -->
<h3 class="fn" id="QBarDataRow-typedef"><a name="QBarDataRow-typedef"></a>typedef <span class="name">QBarDataRow</span></h3>
<p>A vector of <a href="qbardataitem.html">QBarDataItem</a> objects.</p>
<!-- @@@QBarDataRow -->
</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>