Sophie

Sophie

distrib > Mageia > 6 > armv5tl > media > core-updates > by-pkgid > 768f7d9f703884aa2562bf0a651086df > files > 3318

qtbase5-doc-5.9.4-1.1.mga6.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" />
<!-- qgraphicsgridlayout.cpp -->
  <title>QGraphicsGridLayout Class | Qt Widgets 5.9</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.9</td><td ><a href="qtwidgets-index.html">Qt Widgets</a></td><td ><a href="qtwidgets-module.html">C++ Classes</a></td><td >QGraphicsGridLayout</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right">Qt 5.9.4 Reference Documentation</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>
<li class="level2"><a href="#size-hints-and-size-policies-in-qgraphicsgridlayout">Size Hints and Size Policies in QGraphicsGridLayout</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">QGraphicsGridLayout Class</h1>
<!-- $$$QGraphicsGridLayout-brief -->
<p>The <a href="qgraphicsgridlayout.html">QGraphicsGridLayout</a> class provides a grid layout for managing widgets in Graphics View. <a href="#details">More...</a></p>
<!-- @@@QGraphicsGridLayout -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign">   <span class="preprocessor">#include &lt;QGraphicsGridLayout&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.4</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> <a href="qgraphicslayout.html">QGraphicsLayout</a></td></tr></table></div><ul>
<li><a href="qgraphicsgridlayout-members.html">List of all members, including inherited 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="qgraphicsgridlayout.html#QGraphicsGridLayout">QGraphicsGridLayout</a></b>(QGraphicsLayoutItem *<i>parent</i> = Q_NULLPTR)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#dtor.QGraphicsGridLayout">~QGraphicsGridLayout</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#addItem">addItem</a></b>(QGraphicsLayoutItem *<i>item</i>, int <i>row</i>, int <i>column</i>, int <i>rowSpan</i>, int <i>columnSpan</i>, Qt::Alignment <i>alignment</i> = Qt::Alignment())</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#addItem-1">addItem</a></b>(QGraphicsLayoutItem *<i>item</i>, int <i>row</i>, int <i>column</i>, Qt::Alignment <i>alignment</i> = Qt::Alignment())</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Qt::Alignment </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#alignment">alignment</a></b>(QGraphicsLayoutItem *<i>item</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Qt::Alignment </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#columnAlignment">columnAlignment</a></b>(int <i>column</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#columnCount">columnCount</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#columnMaximumWidth">columnMaximumWidth</a></b>(int <i>column</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#columnMinimumWidth">columnMinimumWidth</a></b>(int <i>column</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#columnPreferredWidth">columnPreferredWidth</a></b>(int <i>column</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#columnSpacing">columnSpacing</a></b>(int <i>column</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#columnStretchFactor">columnStretchFactor</a></b>(int <i>column</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#horizontalSpacing">horizontalSpacing</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QGraphicsLayoutItem *</td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#itemAt">itemAt</a></b>(int <i>row</i>, int <i>column</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#removeItem">removeItem</a></b>(QGraphicsLayoutItem *<i>item</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Qt::Alignment </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#rowAlignment">rowAlignment</a></b>(int <i>row</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#rowCount">rowCount</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#rowMaximumHeight">rowMaximumHeight</a></b>(int <i>row</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#rowMinimumHeight">rowMinimumHeight</a></b>(int <i>row</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#rowPreferredHeight">rowPreferredHeight</a></b>(int <i>row</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#rowSpacing">rowSpacing</a></b>(int <i>row</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#rowStretchFactor">rowStretchFactor</a></b>(int <i>row</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#setAlignment">setAlignment</a></b>(QGraphicsLayoutItem *<i>item</i>, Qt::Alignment <i>alignment</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#setColumnAlignment">setColumnAlignment</a></b>(int <i>column</i>, Qt::Alignment <i>alignment</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#setColumnFixedWidth">setColumnFixedWidth</a></b>(int <i>column</i>, qreal <i>width</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#setColumnMaximumWidth">setColumnMaximumWidth</a></b>(int <i>column</i>, qreal <i>width</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#setColumnMinimumWidth">setColumnMinimumWidth</a></b>(int <i>column</i>, qreal <i>width</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#setColumnPreferredWidth">setColumnPreferredWidth</a></b>(int <i>column</i>, qreal <i>width</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#setColumnSpacing">setColumnSpacing</a></b>(int <i>column</i>, qreal <i>spacing</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#setColumnStretchFactor">setColumnStretchFactor</a></b>(int <i>column</i>, int <i>stretch</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#setHorizontalSpacing">setHorizontalSpacing</a></b>(qreal <i>spacing</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#setRowAlignment">setRowAlignment</a></b>(int <i>row</i>, Qt::Alignment <i>alignment</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#setRowFixedHeight">setRowFixedHeight</a></b>(int <i>row</i>, qreal <i>height</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#setRowMaximumHeight">setRowMaximumHeight</a></b>(int <i>row</i>, qreal <i>height</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#setRowMinimumHeight">setRowMinimumHeight</a></b>(int <i>row</i>, qreal <i>height</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#setRowPreferredHeight">setRowPreferredHeight</a></b>(int <i>row</i>, qreal <i>height</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#setRowSpacing">setRowSpacing</a></b>(int <i>row</i>, qreal <i>spacing</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#setRowStretchFactor">setRowStretchFactor</a></b>(int <i>row</i>, int <i>stretch</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#setSpacing">setSpacing</a></b>(qreal <i>spacing</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#setVerticalSpacing">setVerticalSpacing</a></b>(qreal <i>spacing</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#verticalSpacing">verticalSpacing</a></b>() const</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 int </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#count">count</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#invalidate">invalidate</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QGraphicsLayoutItem *</td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#itemAt-1">itemAt</a></b>(int <i>index</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#removeAt">removeAt</a></b>(int <i>index</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#setGeometry">setGeometry</a></b>(const QRectF &amp;<i>rect</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QSizeF </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#sizeHint">sizeHint</a></b>(Qt::SizeHint <i>which</i>, const QSizeF &amp;<i>constraint</i> = QSizeF()) const</td></tr>
</table></div>
<ul>
<li class="fn">10 public functions inherited from <a href="qgraphicslayout.html#public-functions">QGraphicsLayout</a></li>
<li class="fn">35 public functions inherited from <a href="qgraphicslayoutitem.html#public-functions">QGraphicsLayoutItem</a></li>
</ul>
<h3>Additional Inherited Members</h3>
<ul>
<li class="fn">1 protected function inherited from <a href="qgraphicslayout.html#protected-functions">QGraphicsLayout</a></li>
<li class="fn">3 protected functions inherited from <a href="qgraphicslayoutitem.html#protected-functions">QGraphicsLayoutItem</a></li>
</ul>
<a name="details"></a>
<!-- $$$QGraphicsGridLayout-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
<p>The <a href="qgraphicsgridlayout.html">QGraphicsGridLayout</a> class provides a grid layout for managing widgets in Graphics View.</p>
<p>The most common way to use <a href="qgraphicsgridlayout.html">QGraphicsGridLayout</a> is to construct an object on the heap with no parent, add widgets and layouts by calling <a href="qgraphicsgridlayout.html#addItem">addItem</a>(), and finally assign the layout to a widget by calling <a href="qgraphicswidget.html#setLayout">QGraphicsWidget::setLayout</a>(). <a href="qgraphicsgridlayout.html">QGraphicsGridLayout</a> automatically computes the dimensions of the grid as you add items.</p>
<pre class="cpp">

  <span class="type"><a href="qgraphicsscene.html">QGraphicsScene</a></span> scene;
  <span class="type"><a href="qgraphicswidget.html">QGraphicsWidget</a></span> <span class="operator">*</span>textEdit <span class="operator">=</span> scene<span class="operator">.</span>addWidget(<span class="keyword">new</span> <span class="type"><a href="qtextedit.html">QTextEdit</a></span>);
  <span class="type"><a href="qgraphicswidget.html">QGraphicsWidget</a></span> <span class="operator">*</span>pushButton <span class="operator">=</span> scene<span class="operator">.</span>addWidget(<span class="keyword">new</span> <span class="type"><a href="qpushbutton.html">QPushButton</a></span>);

  <span class="type"><a href="qgraphicsgridlayout.html#QGraphicsGridLayout">QGraphicsGridLayout</a></span> <span class="operator">*</span>layout <span class="operator">=</span> <span class="keyword">new</span> <span class="type"><a href="qgraphicsgridlayout.html#QGraphicsGridLayout">QGraphicsGridLayout</a></span>;
  layout<span class="operator">-</span><span class="operator">&gt;</span>addItem(textEdit<span class="operator">,</span> <span class="number">0</span><span class="operator">,</span> <span class="number">0</span>);
  layout<span class="operator">-</span><span class="operator">&gt;</span>addItem(pushButton<span class="operator">,</span> <span class="number">0</span><span class="operator">,</span> <span class="number">1</span>);

  <span class="type"><a href="qgraphicswidget.html">QGraphicsWidget</a></span> <span class="operator">*</span>form <span class="operator">=</span> <span class="keyword">new</span> <span class="type"><a href="qgraphicswidget.html">QGraphicsWidget</a></span>;
  form<span class="operator">-</span><span class="operator">&gt;</span>setLayout(layout);
  scene<span class="operator">.</span>addItem(form);

</pre>
<p>The layout takes ownership of the items. In some cases when the layout item also inherits from <a href="qgraphicsitem.html">QGraphicsItem</a> (such as <a href="graphicsview.html#qgraphicswidget">QGraphicsWidget</a>) there will be a ambiguity in ownership because the layout item belongs to two ownership hierarchies. See the documentation of <a href="qgraphicslayoutitem.html#setOwnedByLayout">QGraphicsLayoutItem::setOwnedByLayout</a>() how to handle this. You can access each item in the layout by calling <a href="qgraphicsgridlayout.html#count">count</a>() and <a href="qgraphicsgridlayout.html#itemAt">itemAt</a>(). Calling <a href="qgraphicsgridlayout.html#removeAt">removeAt</a>() will remove an item from the layout, without destroying it.</p>
<a name="size-hints-and-size-policies-in-qgraphicsgridlayout"></a>
<h3 >Size Hints and Size Policies in QGraphicsGridLayout</h3>
<p><a href="qgraphicsgridlayout.html">QGraphicsGridLayout</a> respects each item's size hints and size policies, and when a cell in the grid has more space than the items can fill, each item is arranged according to the layout's alignment for that item. You can set an alignment for each item by calling <a href="qgraphicsgridlayout.html#setAlignment">setAlignment</a>(), and check the alignment for any item by calling <a href="qgraphicsgridlayout.html#alignment">alignment</a>(). You can also set the alignment for an entire row or column by calling <a href="qgraphicsgridlayout.html#setRowAlignment">setRowAlignment</a>() and <a href="qgraphicsgridlayout.html#setColumnAlignment">setColumnAlignment</a>() respectively. By default, items are aligned to the top left.</p>
</div>
<p><b>See also </b><a href="qgraphicslinearlayout.html">QGraphicsLinearLayout</a> and <a href="graphicsview.html#qgraphicswidget">QGraphicsWidget</a>.</p>
<!-- @@@QGraphicsGridLayout -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QGraphicsGridLayout[overload1]$$$QGraphicsGridLayoutQGraphicsLayoutItem* -->
<h3 class="fn" id="QGraphicsGridLayout"><a name="QGraphicsGridLayout"></a>QGraphicsGridLayout::<span class="name">QGraphicsGridLayout</span>(<span class="type"><a href="qgraphicslayoutitem.html#QGraphicsLayoutItem">QGraphicsLayoutItem</a></span> *<i>parent</i> = Q_NULLPTR)</h3>
<p>Constructs a <a href="qgraphicsgridlayout.html">QGraphicsGridLayout</a> instance. <i>parent</i> is passed to <a href="graphicsview.html#qgraphicslayout">QGraphicsLayout</a>'s constructor.</p>
<!-- @@@QGraphicsGridLayout -->
<!-- $$$~QGraphicsGridLayout[overload1]$$$~QGraphicsGridLayout -->
<h3 class="fn" id="dtor.QGraphicsGridLayout"><a name="dtor.QGraphicsGridLayout"></a><code>[virtual] </code>QGraphicsGridLayout::<span class="name">~QGraphicsGridLayout</span>()</h3>
<p>Destroys the <a href="qgraphicsgridlayout.html">QGraphicsGridLayout</a> object.</p>
<!-- @@@~QGraphicsGridLayout -->
<!-- $$$addItem[overload1]$$$addItemQGraphicsLayoutItem*intintintintQt::Alignment -->
<h3 class="fn" id="addItem"><a name="addItem"></a><span class="type">void</span> QGraphicsGridLayout::<span class="name">addItem</span>(<span class="type"><a href="qgraphicslayoutitem.html#QGraphicsLayoutItem">QGraphicsLayoutItem</a></span> *<i>item</i>, <span class="type">int</span> <i>row</i>, <span class="type">int</span> <i>column</i>, <span class="type">int</span> <i>rowSpan</i>, <span class="type">int</span> <i>columnSpan</i>, <span class="type"><a href="../qtcore/qt.html#AlignmentFlag-enum">Qt::Alignment</a></span> <i>alignment</i> = Qt::Alignment())</h3>
<p>Adds <i>item</i> to the grid on <i>row</i> and <i>column</i>. You can specify a <i>rowSpan</i> and <i>columnSpan</i> and an optional <i>alignment</i>.</p>
<!-- @@@addItem -->
<!-- $$$addItem$$$addItemQGraphicsLayoutItem*intintQt::Alignment -->
<h3 class="fn" id="addItem-1"><a name="addItem-1"></a><span class="type">void</span> QGraphicsGridLayout::<span class="name">addItem</span>(<span class="type"><a href="qgraphicslayoutitem.html#QGraphicsLayoutItem">QGraphicsLayoutItem</a></span> *<i>item</i>, <span class="type">int</span> <i>row</i>, <span class="type">int</span> <i>column</i>, <span class="type"><a href="../qtcore/qt.html#AlignmentFlag-enum">Qt::Alignment</a></span> <i>alignment</i> = Qt::Alignment())</h3>
<p>Adds <i>item</i> to the grid on <i>row</i> and <i>column</i>. You can specify an optional <i>alignment</i> for <i>item</i>.</p>
<!-- @@@addItem -->
<!-- $$$alignment[overload1]$$$alignmentQGraphicsLayoutItem* -->
<h3 class="fn" id="alignment"><a name="alignment"></a><span class="type"><a href="../qtcore/qt.html#AlignmentFlag-enum">Qt::Alignment</a></span> QGraphicsGridLayout::<span class="name">alignment</span>(<span class="type"><a href="qgraphicslayoutitem.html#QGraphicsLayoutItem">QGraphicsLayoutItem</a></span> *<i>item</i>) const</h3>
<p>Returns the alignment for <i>item</i>.</p>
<p><b>See also </b><a href="qgraphicsgridlayout.html#setAlignment">setAlignment</a>().</p>
<!-- @@@alignment -->
<!-- $$$columnAlignment[overload1]$$$columnAlignmentint -->
<h3 class="fn" id="columnAlignment"><a name="columnAlignment"></a><span class="type"><a href="../qtcore/qt.html#AlignmentFlag-enum">Qt::Alignment</a></span> QGraphicsGridLayout::<span class="name">columnAlignment</span>(<span class="type">int</span> <i>column</i>) const</h3>
<p>Returns the alignment for <i>column</i>.</p>
<p><b>See also </b><a href="qgraphicsgridlayout.html#setColumnAlignment">setColumnAlignment</a>().</p>
<!-- @@@columnAlignment -->
<!-- $$$columnCount[overload1]$$$columnCount -->
<h3 class="fn" id="columnCount"><a name="columnCount"></a><span class="type">int</span> QGraphicsGridLayout::<span class="name">columnCount</span>() const</h3>
<p>Returns the number of columns in the grid layout. This is always one more than the index of the last column that is occupied by a layout item (empty columns are counted except for those at the end).</p>
<!-- @@@columnCount -->
<!-- $$$columnMaximumWidth[overload1]$$$columnMaximumWidthint -->
<h3 class="fn" id="columnMaximumWidth"><a name="columnMaximumWidth"></a><span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> QGraphicsGridLayout::<span class="name">columnMaximumWidth</span>(<span class="type">int</span> <i>column</i>) const</h3>
<p>Returns the maximum width for <i>column</i>.</p>
<p><b>See also </b><a href="qgraphicsgridlayout.html#setColumnMaximumWidth">setColumnMaximumWidth</a>().</p>
<!-- @@@columnMaximumWidth -->
<!-- $$$columnMinimumWidth[overload1]$$$columnMinimumWidthint -->
<h3 class="fn" id="columnMinimumWidth"><a name="columnMinimumWidth"></a><span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> QGraphicsGridLayout::<span class="name">columnMinimumWidth</span>(<span class="type">int</span> <i>column</i>) const</h3>
<p>Returns the minimum width for <i>column</i>.</p>
<p><b>See also </b><a href="qgraphicsgridlayout.html#setColumnMinimumWidth">setColumnMinimumWidth</a>().</p>
<!-- @@@columnMinimumWidth -->
<!-- $$$columnPreferredWidth[overload1]$$$columnPreferredWidthint -->
<h3 class="fn" id="columnPreferredWidth"><a name="columnPreferredWidth"></a><span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> QGraphicsGridLayout::<span class="name">columnPreferredWidth</span>(<span class="type">int</span> <i>column</i>) const</h3>
<p>Returns the preferred width for <i>column</i>.</p>
<p><b>See also </b><a href="qgraphicsgridlayout.html#setColumnPreferredWidth">setColumnPreferredWidth</a>().</p>
<!-- @@@columnPreferredWidth -->
<!-- $$$columnSpacing[overload1]$$$columnSpacingint -->
<h3 class="fn" id="columnSpacing"><a name="columnSpacing"></a><span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> QGraphicsGridLayout::<span class="name">columnSpacing</span>(<span class="type">int</span> <i>column</i>) const</h3>
<p>Returns the column spacing for <i>column</i>.</p>
<p><b>See also </b><a href="qgraphicsgridlayout.html#setColumnSpacing">setColumnSpacing</a>().</p>
<!-- @@@columnSpacing -->
<!-- $$$columnStretchFactor[overload1]$$$columnStretchFactorint -->
<h3 class="fn" id="columnStretchFactor"><a name="columnStretchFactor"></a><span class="type">int</span> QGraphicsGridLayout::<span class="name">columnStretchFactor</span>(<span class="type">int</span> <i>column</i>) const</h3>
<p>Returns the stretch factor for <i>column</i>.</p>
<p><b>See also </b><a href="qgraphicsgridlayout.html#setColumnStretchFactor">setColumnStretchFactor</a>().</p>
<!-- @@@columnStretchFactor -->
<!-- $$$count[overload1]$$$count -->
<h3 class="fn" id="count"><a name="count"></a><code>[virtual] </code><span class="type">int</span> QGraphicsGridLayout::<span class="name">count</span>() const</h3>
<p>Reimplemented from <a href="qgraphicslayout.html#count">QGraphicsLayout::count</a>().</p>
<p>Returns the number of layout items in this grid layout.</p>
<!-- @@@count -->
<!-- $$$horizontalSpacing[overload1]$$$horizontalSpacing -->
<h3 class="fn" id="horizontalSpacing"><a name="horizontalSpacing"></a><span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> QGraphicsGridLayout::<span class="name">horizontalSpacing</span>() const</h3>
<p>Returns the default horizontal spacing for the grid layout.</p>
<p><b>See also </b><a href="qgraphicsgridlayout.html#setHorizontalSpacing">setHorizontalSpacing</a>().</p>
<!-- @@@horizontalSpacing -->
<!-- $$$invalidate[overload1]$$$invalidate -->
<h3 class="fn" id="invalidate"><a name="invalidate"></a><code>[virtual] </code><span class="type">void</span> QGraphicsGridLayout::<span class="name">invalidate</span>()</h3>
<p>Reimplemented from <a href="qgraphicslayout.html#invalidate">QGraphicsLayout::invalidate</a>().</p>
<!-- @@@invalidate -->
<!-- $$$itemAt[overload1]$$$itemAtintint -->
<h3 class="fn" id="itemAt"><a name="itemAt"></a><span class="type"><a href="qgraphicslayoutitem.html#QGraphicsLayoutItem">QGraphicsLayoutItem</a></span> *QGraphicsGridLayout::<span class="name">itemAt</span>(<span class="type">int</span> <i>row</i>, <span class="type">int</span> <i>column</i>) const</h3>
<p>Returns a pointer to the layout item at (<i>row</i>, <i>column</i>).</p>
<!-- @@@itemAt -->
<!-- $$$itemAt$$$itemAtint -->
<h3 class="fn" id="itemAt-1"><a name="itemAt-1"></a><code>[virtual] </code><span class="type"><a href="qgraphicslayoutitem.html#QGraphicsLayoutItem">QGraphicsLayoutItem</a></span> *QGraphicsGridLayout::<span class="name">itemAt</span>(<span class="type">int</span> <i>index</i>) const</h3>
<p>Reimplemented from <a href="qgraphicslayout.html#itemAt">QGraphicsLayout::itemAt</a>().</p>
<p>Returns the layout item at <i>index</i>, or 0 if there is no layout item at this index.</p>
<!-- @@@itemAt -->
<!-- $$$removeAt[overload1]$$$removeAtint -->
<h3 class="fn" id="removeAt"><a name="removeAt"></a><code>[virtual] </code><span class="type">void</span> QGraphicsGridLayout::<span class="name">removeAt</span>(<span class="type">int</span> <i>index</i>)</h3>
<p>Reimplemented from <a href="qgraphicslayout.html#removeAt">QGraphicsLayout::removeAt</a>().</p>
<p>Removes the layout item at <i>index</i> without destroying it. Ownership of the item is transferred to the caller.</p>
<p><b>See also </b><a href="qgraphicsgridlayout.html#addItem">addItem</a>().</p>
<!-- @@@removeAt -->
<!-- $$$removeItem[overload1]$$$removeItemQGraphicsLayoutItem* -->
<h3 class="fn" id="removeItem"><a name="removeItem"></a><span class="type">void</span> QGraphicsGridLayout::<span class="name">removeItem</span>(<span class="type"><a href="qgraphicslayoutitem.html#QGraphicsLayoutItem">QGraphicsLayoutItem</a></span> *<i>item</i>)</h3>
<p>Removes the layout item <i>item</i> without destroying it. Ownership of the item is transferred to the caller.</p>
<p><b>See also </b><a href="qgraphicsgridlayout.html#addItem">addItem</a>().</p>
<!-- @@@removeItem -->
<!-- $$$rowAlignment[overload1]$$$rowAlignmentint -->
<h3 class="fn" id="rowAlignment"><a name="rowAlignment"></a><span class="type"><a href="../qtcore/qt.html#AlignmentFlag-enum">Qt::Alignment</a></span> QGraphicsGridLayout::<span class="name">rowAlignment</span>(<span class="type">int</span> <i>row</i>) const</h3>
<p>Returns the alignment of <i>row</i>.</p>
<p><b>See also </b><a href="qgraphicsgridlayout.html#setRowAlignment">setRowAlignment</a>().</p>
<!-- @@@rowAlignment -->
<!-- $$$rowCount[overload1]$$$rowCount -->
<h3 class="fn" id="rowCount"><a name="rowCount"></a><span class="type">int</span> QGraphicsGridLayout::<span class="name">rowCount</span>() const</h3>
<p>Returns the number of rows in the grid layout. This is always one more than the index of the last row that is occupied by a layout item (empty rows are counted except for those at the end).</p>
<!-- @@@rowCount -->
<!-- $$$rowMaximumHeight[overload1]$$$rowMaximumHeightint -->
<h3 class="fn" id="rowMaximumHeight"><a name="rowMaximumHeight"></a><span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> QGraphicsGridLayout::<span class="name">rowMaximumHeight</span>(<span class="type">int</span> <i>row</i>) const</h3>
<p>Returns the maximum height for row, <i>row</i>.</p>
<p><b>See also </b><a href="qgraphicsgridlayout.html#setRowMaximumHeight">setRowMaximumHeight</a>().</p>
<!-- @@@rowMaximumHeight -->
<!-- $$$rowMinimumHeight[overload1]$$$rowMinimumHeightint -->
<h3 class="fn" id="rowMinimumHeight"><a name="rowMinimumHeight"></a><span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> QGraphicsGridLayout::<span class="name">rowMinimumHeight</span>(<span class="type">int</span> <i>row</i>) const</h3>
<p>Returns the minimum height for row, <i>row</i>.</p>
<p><b>See also </b><a href="qgraphicsgridlayout.html#setRowMinimumHeight">setRowMinimumHeight</a>().</p>
<!-- @@@rowMinimumHeight -->
<!-- $$$rowPreferredHeight[overload1]$$$rowPreferredHeightint -->
<h3 class="fn" id="rowPreferredHeight"><a name="rowPreferredHeight"></a><span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> QGraphicsGridLayout::<span class="name">rowPreferredHeight</span>(<span class="type">int</span> <i>row</i>) const</h3>
<p>Returns the preferred height for row, <i>row</i>.</p>
<p><b>See also </b><a href="qgraphicsgridlayout.html#setRowPreferredHeight">setRowPreferredHeight</a>().</p>
<!-- @@@rowPreferredHeight -->
<!-- $$$rowSpacing[overload1]$$$rowSpacingint -->
<h3 class="fn" id="rowSpacing"><a name="rowSpacing"></a><span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> QGraphicsGridLayout::<span class="name">rowSpacing</span>(<span class="type">int</span> <i>row</i>) const</h3>
<p>Returns the row spacing for <i>row</i>.</p>
<p><b>See also </b><a href="qgraphicsgridlayout.html#setRowSpacing">setRowSpacing</a>().</p>
<!-- @@@rowSpacing -->
<!-- $$$rowStretchFactor[overload1]$$$rowStretchFactorint -->
<h3 class="fn" id="rowStretchFactor"><a name="rowStretchFactor"></a><span class="type">int</span> QGraphicsGridLayout::<span class="name">rowStretchFactor</span>(<span class="type">int</span> <i>row</i>) const</h3>
<p>Returns the stretch factor for <i>row</i>.</p>
<p><b>See also </b><a href="qgraphicsgridlayout.html#setRowStretchFactor">setRowStretchFactor</a>().</p>
<!-- @@@rowStretchFactor -->
<!-- $$$setAlignment[overload1]$$$setAlignmentQGraphicsLayoutItem*Qt::Alignment -->
<h3 class="fn" id="setAlignment"><a name="setAlignment"></a><span class="type">void</span> QGraphicsGridLayout::<span class="name">setAlignment</span>(<span class="type"><a href="qgraphicslayoutitem.html#QGraphicsLayoutItem">QGraphicsLayoutItem</a></span> *<i>item</i>, <span class="type"><a href="../qtcore/qt.html#AlignmentFlag-enum">Qt::Alignment</a></span> <i>alignment</i>)</h3>
<p>Sets the alignment for <i>item</i> to <i>alignment</i>.</p>
<p><b>See also </b><a href="qgraphicsgridlayout.html#alignment">alignment</a>().</p>
<!-- @@@setAlignment -->
<!-- $$$setColumnAlignment[overload1]$$$setColumnAlignmentintQt::Alignment -->
<h3 class="fn" id="setColumnAlignment"><a name="setColumnAlignment"></a><span class="type">void</span> QGraphicsGridLayout::<span class="name">setColumnAlignment</span>(<span class="type">int</span> <i>column</i>, <span class="type"><a href="../qtcore/qt.html#AlignmentFlag-enum">Qt::Alignment</a></span> <i>alignment</i>)</h3>
<p>Sets the alignment for <i>column</i> to <i>alignment</i>.</p>
<p><b>See also </b><a href="qgraphicsgridlayout.html#columnAlignment">columnAlignment</a>().</p>
<!-- @@@setColumnAlignment -->
<!-- $$$setColumnFixedWidth[overload1]$$$setColumnFixedWidthintqreal -->
<h3 class="fn" id="setColumnFixedWidth"><a name="setColumnFixedWidth"></a><span class="type">void</span> QGraphicsGridLayout::<span class="name">setColumnFixedWidth</span>(<span class="type">int</span> <i>column</i>, <span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> <i>width</i>)</h3>
<p>Sets the fixed width of <i>column</i> to <i>width</i>.</p>
<!-- @@@setColumnFixedWidth -->
<!-- $$$setColumnMaximumWidth[overload1]$$$setColumnMaximumWidthintqreal -->
<h3 class="fn" id="setColumnMaximumWidth"><a name="setColumnMaximumWidth"></a><span class="type">void</span> QGraphicsGridLayout::<span class="name">setColumnMaximumWidth</span>(<span class="type">int</span> <i>column</i>, <span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> <i>width</i>)</h3>
<p>Sets the maximum width of <i>column</i> to <i>width</i>.</p>
<p><b>See also </b><a href="qgraphicsgridlayout.html#columnMaximumWidth">columnMaximumWidth</a>().</p>
<!-- @@@setColumnMaximumWidth -->
<!-- $$$setColumnMinimumWidth[overload1]$$$setColumnMinimumWidthintqreal -->
<h3 class="fn" id="setColumnMinimumWidth"><a name="setColumnMinimumWidth"></a><span class="type">void</span> QGraphicsGridLayout::<span class="name">setColumnMinimumWidth</span>(<span class="type">int</span> <i>column</i>, <span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> <i>width</i>)</h3>
<p>Sets the minimum width for <i>column</i> to <i>width</i>.</p>
<p><b>See also </b><a href="qgraphicsgridlayout.html#columnMinimumWidth">columnMinimumWidth</a>().</p>
<!-- @@@setColumnMinimumWidth -->
<!-- $$$setColumnPreferredWidth[overload1]$$$setColumnPreferredWidthintqreal -->
<h3 class="fn" id="setColumnPreferredWidth"><a name="setColumnPreferredWidth"></a><span class="type">void</span> QGraphicsGridLayout::<span class="name">setColumnPreferredWidth</span>(<span class="type">int</span> <i>column</i>, <span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> <i>width</i>)</h3>
<p>Sets the preferred width for <i>column</i> to <i>width</i>.</p>
<p><b>See also </b><a href="qgraphicsgridlayout.html#columnPreferredWidth">columnPreferredWidth</a>().</p>
<!-- @@@setColumnPreferredWidth -->
<!-- $$$setColumnSpacing[overload1]$$$setColumnSpacingintqreal -->
<h3 class="fn" id="setColumnSpacing"><a name="setColumnSpacing"></a><span class="type">void</span> QGraphicsGridLayout::<span class="name">setColumnSpacing</span>(<span class="type">int</span> <i>column</i>, <span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> <i>spacing</i>)</h3>
<p>Sets the spacing for <i>column</i> to <i>spacing</i>.</p>
<p><b>See also </b><a href="qgraphicsgridlayout.html#columnSpacing">columnSpacing</a>().</p>
<!-- @@@setColumnSpacing -->
<!-- $$$setColumnStretchFactor[overload1]$$$setColumnStretchFactorintint -->
<h3 class="fn" id="setColumnStretchFactor"><a name="setColumnStretchFactor"></a><span class="type">void</span> QGraphicsGridLayout::<span class="name">setColumnStretchFactor</span>(<span class="type">int</span> <i>column</i>, <span class="type">int</span> <i>stretch</i>)</h3>
<p>Sets the stretch factor for <i>column</i> to <i>stretch</i>.</p>
<p><b>See also </b><a href="qgraphicsgridlayout.html#columnStretchFactor">columnStretchFactor</a>().</p>
<!-- @@@setColumnStretchFactor -->
<!-- $$$setGeometry[overload1]$$$setGeometryconstQRectF& -->
<h3 class="fn" id="setGeometry"><a name="setGeometry"></a><code>[virtual] </code><span class="type">void</span> QGraphicsGridLayout::<span class="name">setGeometry</span>(const <span class="type"><a href="../qtcore/qrectf.html">QRectF</a></span> &amp;<i>rect</i>)</h3>
<p>Reimplemented from <a href="qgraphicslayoutitem.html#setGeometry">QGraphicsLayoutItem::setGeometry</a>().</p>
<p>Sets the bounding geometry of the grid layout to <i>rect</i>.</p>
<!-- @@@setGeometry -->
<!-- $$$setHorizontalSpacing[overload1]$$$setHorizontalSpacingqreal -->
<h3 class="fn" id="setHorizontalSpacing"><a name="setHorizontalSpacing"></a><span class="type">void</span> QGraphicsGridLayout::<span class="name">setHorizontalSpacing</span>(<span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> <i>spacing</i>)</h3>
<p>Sets the default horizontal spacing for the grid layout to <i>spacing</i>.</p>
<p><b>See also </b><a href="qgraphicsgridlayout.html#horizontalSpacing">horizontalSpacing</a>().</p>
<!-- @@@setHorizontalSpacing -->
<!-- $$$setRowAlignment[overload1]$$$setRowAlignmentintQt::Alignment -->
<h3 class="fn" id="setRowAlignment"><a name="setRowAlignment"></a><span class="type">void</span> QGraphicsGridLayout::<span class="name">setRowAlignment</span>(<span class="type">int</span> <i>row</i>, <span class="type"><a href="../qtcore/qt.html#AlignmentFlag-enum">Qt::Alignment</a></span> <i>alignment</i>)</h3>
<p>Sets the alignment of <i>row</i> to <i>alignment</i>.</p>
<p><b>See also </b><a href="qgraphicsgridlayout.html#rowAlignment">rowAlignment</a>().</p>
<!-- @@@setRowAlignment -->
<!-- $$$setRowFixedHeight[overload1]$$$setRowFixedHeightintqreal -->
<h3 class="fn" id="setRowFixedHeight"><a name="setRowFixedHeight"></a><span class="type">void</span> QGraphicsGridLayout::<span class="name">setRowFixedHeight</span>(<span class="type">int</span> <i>row</i>, <span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> <i>height</i>)</h3>
<p>Sets the fixed height for row, <i>row</i>, to <i>height</i>.</p>
<!-- @@@setRowFixedHeight -->
<!-- $$$setRowMaximumHeight[overload1]$$$setRowMaximumHeightintqreal -->
<h3 class="fn" id="setRowMaximumHeight"><a name="setRowMaximumHeight"></a><span class="type">void</span> QGraphicsGridLayout::<span class="name">setRowMaximumHeight</span>(<span class="type">int</span> <i>row</i>, <span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> <i>height</i>)</h3>
<p>Sets the maximum height for row, <i>row</i>, to <i>height</i>.</p>
<p><b>See also </b><a href="qgraphicsgridlayout.html#rowMaximumHeight">rowMaximumHeight</a>().</p>
<!-- @@@setRowMaximumHeight -->
<!-- $$$setRowMinimumHeight[overload1]$$$setRowMinimumHeightintqreal -->
<h3 class="fn" id="setRowMinimumHeight"><a name="setRowMinimumHeight"></a><span class="type">void</span> QGraphicsGridLayout::<span class="name">setRowMinimumHeight</span>(<span class="type">int</span> <i>row</i>, <span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> <i>height</i>)</h3>
<p>Sets the minimum height for row, <i>row</i>, to <i>height</i>.</p>
<p><b>See also </b><a href="qgraphicsgridlayout.html#rowMinimumHeight">rowMinimumHeight</a>().</p>
<!-- @@@setRowMinimumHeight -->
<!-- $$$setRowPreferredHeight[overload1]$$$setRowPreferredHeightintqreal -->
<h3 class="fn" id="setRowPreferredHeight"><a name="setRowPreferredHeight"></a><span class="type">void</span> QGraphicsGridLayout::<span class="name">setRowPreferredHeight</span>(<span class="type">int</span> <i>row</i>, <span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> <i>height</i>)</h3>
<p>Sets the preferred height for row, <i>row</i>, to <i>height</i>.</p>
<p><b>See also </b><a href="qgraphicsgridlayout.html#rowPreferredHeight">rowPreferredHeight</a>().</p>
<!-- @@@setRowPreferredHeight -->
<!-- $$$setRowSpacing[overload1]$$$setRowSpacingintqreal -->
<h3 class="fn" id="setRowSpacing"><a name="setRowSpacing"></a><span class="type">void</span> QGraphicsGridLayout::<span class="name">setRowSpacing</span>(<span class="type">int</span> <i>row</i>, <span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> <i>spacing</i>)</h3>
<p>Sets the spacing for <i>row</i> to <i>spacing</i>.</p>
<p><b>See also </b><a href="qgraphicsgridlayout.html#rowSpacing">rowSpacing</a>().</p>
<!-- @@@setRowSpacing -->
<!-- $$$setRowStretchFactor[overload1]$$$setRowStretchFactorintint -->
<h3 class="fn" id="setRowStretchFactor"><a name="setRowStretchFactor"></a><span class="type">void</span> QGraphicsGridLayout::<span class="name">setRowStretchFactor</span>(<span class="type">int</span> <i>row</i>, <span class="type">int</span> <i>stretch</i>)</h3>
<p>Sets the stretch factor for <i>row</i> to <i>stretch</i>.</p>
<p><b>See also </b><a href="qgraphicsgridlayout.html#rowStretchFactor">rowStretchFactor</a>().</p>
<!-- @@@setRowStretchFactor -->
<!-- $$$setSpacing[overload1]$$$setSpacingqreal -->
<h3 class="fn" id="setSpacing"><a name="setSpacing"></a><span class="type">void</span> QGraphicsGridLayout::<span class="name">setSpacing</span>(<span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> <i>spacing</i>)</h3>
<p>Sets the grid layout's default spacing, both vertical and horizontal, to <i>spacing</i>.</p>
<p><b>See also </b><a href="qgraphicsgridlayout.html#rowSpacing">rowSpacing</a>() and <a href="qgraphicsgridlayout.html#columnSpacing">columnSpacing</a>().</p>
<!-- @@@setSpacing -->
<!-- $$$setVerticalSpacing[overload1]$$$setVerticalSpacingqreal -->
<h3 class="fn" id="setVerticalSpacing"><a name="setVerticalSpacing"></a><span class="type">void</span> QGraphicsGridLayout::<span class="name">setVerticalSpacing</span>(<span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> <i>spacing</i>)</h3>
<p>Sets the default vertical spacing for the grid layout to <i>spacing</i>.</p>
<p><b>See also </b><a href="qgraphicsgridlayout.html#verticalSpacing">verticalSpacing</a>().</p>
<!-- @@@setVerticalSpacing -->
<!-- $$$sizeHint[overload1]$$$sizeHintQt::SizeHintconstQSizeF& -->
<h3 class="fn" id="sizeHint"><a name="sizeHint"></a><code>[virtual] </code><span class="type"><a href="../qtcore/qsizef.html">QSizeF</a></span> QGraphicsGridLayout::<span class="name">sizeHint</span>(<span class="type"><a href="../qtcore/qt.html#SizeHint-enum">Qt::SizeHint</a></span> <i>which</i>, const <span class="type"><a href="../qtcore/qsizef.html">QSizeF</a></span> &amp;<i>constraint</i> = QSizeF()) const</h3>
<p>Reimplemented from <a href="qgraphicslayoutitem.html#sizeHint">QGraphicsLayoutItem::sizeHint</a>().</p>
<!-- @@@sizeHint -->
<!-- $$$verticalSpacing[overload1]$$$verticalSpacing -->
<h3 class="fn" id="verticalSpacing"><a name="verticalSpacing"></a><span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> QGraphicsGridLayout::<span class="name">verticalSpacing</span>() const</h3>
<p>Returns the default vertical spacing for the grid layout.</p>
<p><b>See also </b><a href="qgraphicsgridlayout.html#setVerticalSpacing">setVerticalSpacing</a>().</p>
<!-- @@@verticalSpacing -->
</div>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> 2017 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>