Sophie

Sophie

distrib > Mageia > 7 > x86_64 > by-pkgid > 1dd17e0d683ef79b4bb6872bbf359d7f > files > 5397

qt4-doc-4.8.7-26.2.mga7.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qgraphicsgridlayout.cpp -->
  <title>Qt 4.8: QGraphicsGridLayout Class Reference</title>
  <link rel="stylesheet" type="text/css" href="style/style.css" />
  <script src="scripts/jquery.js" type="text/javascript"></script>
  <script src="scripts/functions.js" type="text/javascript"></script>
  <link rel="stylesheet" type="text/css" href="style/superfish.css" />
  <link rel="stylesheet" type="text/css" href="style/narrow.css" />
  <!--[if IE]>
<meta name="MSSmartTagsPreventParsing" content="true">
<meta http-equiv="imagetoolbar" content="no">
<![endif]-->
<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" href="style/style_ie6.css">
<![endif]-->
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="style/style_ie7.css">
<![endif]-->
<!--[if IE 8]>
<link rel="stylesheet" type="text/css" href="style/style_ie8.css">
<![endif]-->

<script src="scripts/superfish.js" type="text/javascript"></script>
<script src="scripts/narrow.js" type="text/javascript"></script>

</head>
<body class="" onload="CheckEmptyAndLoadList();">
 <div class="header" id="qtdocheader">
    <div class="content"> 
    <div id="nav-logo">
      <a href="index.html">Home</a></div>
    <a href="index.html" class="qtref"><span>Qt Reference Documentation</span></a>
    <div id="narrowsearch"></div>
    <div id="nav-topright">
      <ul>
        <li class="nav-topright-home"><a href="http://qt.digia.com/">Qt HOME</a></li>
        <li class="nav-topright-dev"><a href="http://qt-project.org/">DEV</a></li>
        <li class="nav-topright-doc nav-topright-doc-active"><a href="http://qt-project.org/doc/">
          DOC</a></li>
        <li class="nav-topright-blog"><a href="http://blog.qt.digia.com/">BLOG</a></li>
      </ul>
    </div>
    <div id="shortCut">
      <ul>
        <li class="shortCut-topleft-inactive"><span><a href="index.html">Qt 4.8</a></span></li>
        <li class="shortCut-topleft-active"><a href="http://qt-project.org/doc/">ALL VERSIONS        </a></li>
      </ul>
     </div>
 <ul class="sf-menu" id="narrowmenu"> 
             <li><a href="#">API Lookup</a> 
                 <ul> 
                     <li><a href="classes.html">Class index</a></li> 
           <li><a href="functions.html">Function index</a></li> 
           <li><a href="modules.html">Modules</a></li> 
           <li><a href="namespaces.html">Namespaces</a></li> 
           <li><a href="qtglobal.html">Global Declarations</a></li> 
           <li><a href="qdeclarativeelements.html">QML elements</a></li> 
             </ul> 
             </li> 
             <li><a href="#">Qt Topics</a> 
                 <ul> 
                        <li><a href="qt-basic-concepts.html">Programming with Qt</a></li>  
                        <li><a href="qtquick.html">Device UIs &amp; Qt Quick</a></li>  
                        <li><a href="qt-gui-concepts.html">UI Design with Qt</a></li>  
                        <li><a href="supported-platforms.html">Supported Platforms</a></li>  
                        <li><a href="technology-apis.html">Qt and Key Technologies</a></li>  
                        <li><a href="best-practices.html">How-To's and Best Practices</a></li>  
              </ul> 
                 </li> 
                 <li><a href="#">Examples</a> 
                     <ul> 
                       <li><a href="all-examples.html">Examples</a></li> 
                       <li><a href="tutorials.html">Tutorials</a></li> 
                       <li><a href="demos.html">Demos</a></li> 
                       <li><a href="qdeclarativeexamples.html">QML Examples</a></li> 
                </ul> 
                     </li> 
                 </ul> 
    </div>
  </div>
  <div class="wrapper">
    <div class="hd">
      <span></span>
    </div>
    <div class="bd group">
      <div class="sidebar">
        <div class="searchlabel">
          Search index:</div>
        <div class="search" id="sidebarsearch">
          <form id="qtdocsearch" action="" onsubmit="return false;">
            <fieldset>
              <input type="text" name="searchstring" id="pageType" value="" />
 <div id="resultdialog"> 
 <a href="#" id="resultclose">Close</a> 
 <p id="resultlinks" class="all"><a href="#" id="showallresults">All</a> | <a href="#" id="showapiresults">API</a> | <a href="#" id="showarticleresults">Articles</a> | <a href="#" id="showexampleresults">Examples</a></p> 
 <p id="searchcount" class="all"><span id="resultcount"></span><span id="apicount"></span><span id="articlecount"></span><span id="examplecount"></span>&nbsp;results:</p> 
 <ul id="resultlist" class="all"> 
 </ul> 
 </div> 
            </fieldset>
          </form>
        </div>
        <div class="box first bottombar" id="lookup">
          <h2 title="API Lookup"><span></span>
            API Lookup</h2>
          <div  id="list001" class="list">
          <ul id="ul001" >
              <li class="defaultLink"><a href="classes.html">Class index</a></li>
              <li class="defaultLink"><a href="functions.html">Function index</a></li>
              <li class="defaultLink"><a href="modules.html">Modules</a></li>
              <li class="defaultLink"><a href="namespaces.html">Namespaces</a></li>
              <li class="defaultLink"><a href="qtglobal.html">Global Declarations</a></li>
              <li class="defaultLink"><a href="qdeclarativeelements.html">QML elements</a></li>
            </ul> 
          </div>
        </div>
        <div class="box bottombar" id="topics">
          <h2 title="Qt Topics"><span></span>
            Qt Topics</h2>
          <div id="list002" class="list">
            <ul id="ul002" >
               <li class="defaultLink"><a href="qt-basic-concepts.html">Programming with Qt</a></li> 
               <li class="defaultLink"><a href="qtquick.html">Device UIs &amp; Qt Quick</a></li> 
               <li class="defaultLink"><a href="qt-gui-concepts.html">UI Design with Qt</a></li> 
               <li class="defaultLink"><a href="supported-platforms.html">Supported Platforms</a></li>  
               <li class="defaultLink"><a href="technology-apis.html">Qt and Key Technologies</a></li> 
               <li class="defaultLink"><a href="best-practices.html">How-To's and Best Practices</a></li> 
            </ul>  
          </div>
        </div>
        <div class="box" id="examples">
          <h2 title="Examples"><span></span>
            Examples</h2>
          <div id="list003" class="list">
        <ul id="ul003">
              <li class="defaultLink"><a href="all-examples.html">Examples</a></li>
              <li class="defaultLink"><a href="tutorials.html">Tutorials</a></li>
              <li class="defaultLink"><a href="demos.html">Demos</a></li>
              <li class="defaultLink"><a href="qdeclarativeexamples.html">QML Examples</a></li>
            </ul> 
          </div>
        </div>
      </div>
      <div class="wrap">
        <div class="toolbar">
          <div class="breadcrumb toolblock">
            <ul>
              <li class="first"><a href="index.html">Home</a></li>
              <!--  Breadcrumbs go here -->
<li><a href="modules.html">Modules</a></li>
<li><a href="qtgui.html">QtGui</a></li>
<li>QGraphicsGridLayout</li>
            </ul>
          </div>
          <div class="toolbuttons toolblock">
            <ul>
              <li id="smallA" class="t_button">A</li>
              <li id="medA" class="t_button active">A</li>
              <li id="bigA" class="t_button">A</li>
              <li id="print" class="t_button"><a href="javascript:this.print();">
                <span>Print</span></a></li>
            </ul>
        </div>
        </div>
        <div class="content mainContent">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#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>
<h1 class="title">QGraphicsGridLayout Class Reference</h1>
<!-- $$$QGraphicsGridLayout-brief -->
<p>The QGraphicsGridLayout class provides a grid layout for managing widgets in Graphics View. <a href="#details">More...</a></p>
<!-- @@@QGraphicsGridLayout -->
<pre class="cpp"> <span class="preprocessor">#include &lt;QGraphicsGridLayout&gt;</span></pre><p><b>Inherits: </b><a href="qgraphicslayout.html">QGraphicsLayout</a>.</p>
<p>This class was introduced in Qt 4.4.</p>
<ul>
<li><a href="qgraphicsgridlayout-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-functions"></a>
<h2>Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#QGraphicsGridLayout">QGraphicsGridLayout</a></b> ( QGraphicsLayoutItem * <i>parent</i> = 0 )</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> = 0 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#addItem-2">addItem</a></b> ( QGraphicsLayoutItem * <i>item</i>, int <i>row</i>, int <i>column</i>, Qt::Alignment <i>alignment</i> = 0 )</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>
<a name="reimplemented-public-functions"></a>
<h2>Reimplemented Public Functions</h2>
<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-2">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>
<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">2 static public members inherited from <a href="qgraphicslayout.html#static-public-members">QGraphicsLayout</a></li>
<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>Detailed Description</h2>
<p>The QGraphicsGridLayout class provides a grid layout for managing widgets in Graphics View.</p>
<p>The most common way to use QGraphicsGridLayout 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#layout-prop">QGraphicsWidget::setLayout</a>(). QGraphicsGridLayout 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">QGraphicsGridLayout</span> <span class="operator">*</span>layout <span class="operator">=</span> <span class="keyword">new</span> <span class="type">QGraphicsGridLayout</span>;
 layout<span class="operator">-</span><span class="operator">&gt;</span><a href="qgraphicsgridlayout.html#addItem">addItem</a>(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><a href="qgraphicsgridlayout.html#addItem">addItem</a>(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><a href="qgraphicsgridlayout.html#addItem">addItem</a>(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="qgraphicswidget.html">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>QGraphicsGridLayout 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="qgraphicswidget.html">QGraphicsWidget</a>.</p>
<!-- @@@QGraphicsGridLayout -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QGraphicsGridLayout[overload1]$$$QGraphicsGridLayoutQGraphicsLayoutItem* -->
<h3 class="fn"><a name="QGraphicsGridLayout"></a>QGraphicsGridLayout::<span class="name">QGraphicsGridLayout</span> ( <span class="type"><a href="qgraphicslayoutitem.html">QGraphicsLayoutItem</a></span> * <i>parent</i> = 0 )</h3>
<p>Constructs a <a href="qgraphicsgridlayout.html">QGraphicsGridLayout</a> instance. <i>parent</i> is passed to <a href="qgraphicslayout.html">QGraphicsLayout</a>'s constructor.</p>
<!-- @@@QGraphicsGridLayout -->
<!-- $$$~QGraphicsGridLayout[overload1]$$$~QGraphicsGridLayout -->
<h3 class="fn"><a name="dtor.QGraphicsGridLayout"></a>QGraphicsGridLayout::<span class="name">~QGraphicsGridLayout</span> ()<tt> [virtual]</tt></h3>
<p>Destroys the <a href="qgraphicsgridlayout.html">QGraphicsGridLayout</a> object.</p>
<!-- @@@~QGraphicsGridLayout -->
<!-- $$$addItem[overload1]$$$addItemQGraphicsLayoutItem*intintintintQt::Alignment -->
<h3 class="fn"><a name="addItem"></a><span class="type">void</span> QGraphicsGridLayout::<span class="name">addItem</span> ( <span class="type"><a href="qgraphicslayoutitem.html">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="qt.html#AlignmentFlag-enum">Qt::Alignment</a></span> <i>alignment</i> = 0 )</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"><a name="addItem-2"></a><span class="type">void</span> QGraphicsGridLayout::<span class="name">addItem</span> ( <span class="type"><a href="qgraphicslayoutitem.html">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="qt.html#AlignmentFlag-enum">Qt::Alignment</a></span> <i>alignment</i> = 0 )</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"><a name="alignment"></a><span class="type"><a href="qt.html#AlignmentFlag-enum">Qt::Alignment</a></span> QGraphicsGridLayout::<span class="name">alignment</span> ( <span class="type"><a href="qgraphicslayoutitem.html">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"><a name="columnAlignment"></a><span class="type"><a href="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"><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"><a name="columnMaximumWidth"></a><span class="type"><a href="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"><a name="columnMinimumWidth"></a><span class="type"><a href="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"><a name="columnPreferredWidth"></a><span class="type"><a href="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"><a name="columnSpacing"></a><span class="type"><a href="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"><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"><a name="count"></a><span class="type">int</span> QGraphicsGridLayout::<span class="name">count</span> () const<tt> [virtual]</tt></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"><a name="horizontalSpacing"></a><span class="type"><a href="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"><a name="invalidate"></a><span class="type">void</span> QGraphicsGridLayout::<span class="name">invalidate</span> ()<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="qgraphicslayout.html#invalidate">QGraphicsLayout::invalidate</a>().</p>
<!-- @@@invalidate -->
<!-- $$$itemAt[overload1]$$$itemAtintint -->
<h3 class="fn"><a name="itemAt"></a><span class="type"><a href="qgraphicslayoutitem.html">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"><a name="itemAt-2"></a><span class="type"><a href="qgraphicslayoutitem.html">QGraphicsLayoutItem</a></span> * QGraphicsGridLayout::<span class="name">itemAt</span> ( <span class="type">int</span> <i>index</i> ) const<tt> [virtual]</tt></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"><a name="removeAt"></a><span class="type">void</span> QGraphicsGridLayout::<span class="name">removeAt</span> ( <span class="type">int</span> <i>index</i> )<tt> [virtual]</tt></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"><a name="removeItem"></a><span class="type">void</span> QGraphicsGridLayout::<span class="name">removeItem</span> ( <span class="type"><a href="qgraphicslayoutitem.html">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>This function was introduced in Qt 4.8.</p>
<p><b>See also </b><a href="qgraphicsgridlayout.html#addItem">addItem</a>().</p>
<!-- @@@removeItem -->
<!-- $$$rowAlignment[overload1]$$$rowAlignmentint -->
<h3 class="fn"><a name="rowAlignment"></a><span class="type"><a href="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"><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"><a name="rowMaximumHeight"></a><span class="type"><a href="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"><a name="rowMinimumHeight"></a><span class="type"><a href="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"><a name="rowPreferredHeight"></a><span class="type"><a href="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"><a name="rowSpacing"></a><span class="type"><a href="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"><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"><a name="setAlignment"></a><span class="type">void</span> QGraphicsGridLayout::<span class="name">setAlignment</span> ( <span class="type"><a href="qgraphicslayoutitem.html">QGraphicsLayoutItem</a></span> * <i>item</i>, <span class="type"><a href="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"><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="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"><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="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"><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="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"><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="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"><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="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"><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="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"><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"><a name="setGeometry"></a><span class="type">void</span> QGraphicsGridLayout::<span class="name">setGeometry</span> ( const <span class="type"><a href="qrectf.html">QRectF</a></span> &amp; <i>rect</i> )<tt> [virtual]</tt></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"><a name="setHorizontalSpacing"></a><span class="type">void</span> QGraphicsGridLayout::<span class="name">setHorizontalSpacing</span> ( <span class="type"><a href="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"><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="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"><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="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"><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="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"><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="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"><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="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"><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="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"><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"><a name="setSpacing"></a><span class="type">void</span> QGraphicsGridLayout::<span class="name">setSpacing</span> ( <span class="type"><a href="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"><a name="setVerticalSpacing"></a><span class="type">void</span> QGraphicsGridLayout::<span class="name">setVerticalSpacing</span> ( <span class="type"><a href="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"><a name="sizeHint"></a><span class="type"><a href="qsizef.html">QSizeF</a></span> QGraphicsGridLayout::<span class="name">sizeHint</span> ( <span class="type"><a href="qt.html#SizeHint-enum">Qt::SizeHint</a></span> <i>which</i>, const <span class="type"><a href="qsizef.html">QSizeF</a></span> &amp; <i>constraint</i> = QSizeF() ) const<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="qgraphicslayoutitem.html#sizeHint">QGraphicsLayoutItem::sizeHint</a>().</p>
<!-- @@@sizeHint -->
<!-- $$$verticalSpacing[overload1]$$$verticalSpacing -->
<h3 class="fn"><a name="verticalSpacing"></a><span class="type"><a href="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 class="ft">
      <span></span>
    </div>
  </div> 
  <div class="footer">
    <p>
      <acronym title="Copyright">&copy;</acronym> 2015 The Qt Company Ltd.
      Documentation contributions included herein are the copyrights of
      their respective owners.</p>
    <br />
    <p>
      The documentation provided herein is licensed under the terms of the
      <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation
      License version 1.3</a> as published by the Free Software Foundation.</p>
    <p>
      Documentation sources may be obtained from <a href="http://www.qt-project.org">
      www.qt-project.org</a>.</p>
    <br />
    <p>
      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. <a title="Privacy Policy"
      href="http://en.gitorious.org/privacy_policy/">Privacy Policy</a></p>
  </div>

  <script src="scripts/functions.js" type="text/javascript"></script>
</body>
</html>