<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd"> <html><head><title>QGraphicsGridLayout Class Reference</title><style>h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm } a:link { color: #004faf; text-decoration: none } a:visited { color: #672967; text-decoration: none } td.postheader { font-family: sans-serif } tr.address { font-family: sans-serif } body { background: #ffffff; color: black; } </style></head><body><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr /><td align="left" valign="top" width="32"><img align="left" border="0" height="32" src="images/rb-logo.png" width="32" /></td><td width="1">  </td><td class="postheader" valign="center"><a href="../pyqt4ref.html"><font color="#004faf">Home</font></a> · <a href="classes.html"><font color="#004faf">All Classes</font></a> · <a href="modules.html"><font color="#004faf">Modules</font></a></td></table><h1 align="center">QGraphicsGridLayout Class Reference<br /><sup><sup>[<a href="qtgui.html">QtGui</a> module]</sup></sup></h1><p>The QGraphicsGridLayout class provides a grid layout for managing widgets in Graphics View. <a href="#details">More...</a></p> <p>Inherits <a href="qgraphicslayout.html">QGraphicsLayout</a>.</p><h3>Methods</h3><ul><li><div class="fn" /><b><a href="qgraphicsgridlayout.html#QGraphicsGridLayout">__init__</a></b> (<i>self</i>, QGraphicsLayoutItem <i>parent</i> = None)</li><li><div class="fn" /><b><a href="qgraphicsgridlayout.html#addItem">addItem</a></b> (<i>self</i>, 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)</li><li><div class="fn" /><b><a href="qgraphicsgridlayout.html#addItem-2">addItem</a></b> (<i>self</i>, QGraphicsLayoutItem <i>aitem</i>, int <i>arow</i>, int <i>acolumn</i>, Qt.Alignment <i>alignment</i> = 0)</li><li><div class="fn" />Qt.Alignment <b><a href="qgraphicsgridlayout.html#alignment">alignment</a></b> (<i>self</i>, QGraphicsLayoutItem <i>item</i>)</li><li><div class="fn" />Qt.Alignment <b><a href="qgraphicsgridlayout.html#columnAlignment">columnAlignment</a></b> (<i>self</i>, int <i>column</i>)</li><li><div class="fn" />int <b><a href="qgraphicsgridlayout.html#columnCount">columnCount</a></b> (<i>self</i>)</li><li><div class="fn" />float <b><a href="qgraphicsgridlayout.html#columnMaximumWidth">columnMaximumWidth</a></b> (<i>self</i>, int <i>column</i>)</li><li><div class="fn" />float <b><a href="qgraphicsgridlayout.html#columnMinimumWidth">columnMinimumWidth</a></b> (<i>self</i>, int <i>column</i>)</li><li><div class="fn" />float <b><a href="qgraphicsgridlayout.html#columnPreferredWidth">columnPreferredWidth</a></b> (<i>self</i>, int <i>column</i>)</li><li><div class="fn" />float <b><a href="qgraphicsgridlayout.html#columnSpacing">columnSpacing</a></b> (<i>self</i>, int <i>column</i>)</li><li><div class="fn" />int <b><a href="qgraphicsgridlayout.html#columnStretchFactor">columnStretchFactor</a></b> (<i>self</i>, int <i>column</i>)</li><li><div class="fn" />int <b><a href="qgraphicsgridlayout.html#count">count</a></b> (<i>self</i>)</li><li><div class="fn" />float <b><a href="qgraphicsgridlayout.html#horizontalSpacing">horizontalSpacing</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qgraphicsgridlayout.html#invalidate">invalidate</a></b> (<i>self</i>)</li><li><div class="fn" />QGraphicsLayoutItem <b><a href="qgraphicsgridlayout.html#itemAt">itemAt</a></b> (<i>self</i>, int <i>row</i>, int <i>column</i>)</li><li><div class="fn" />QGraphicsLayoutItem <b><a href="qgraphicsgridlayout.html#itemAt-2">itemAt</a></b> (<i>self</i>, int <i>index</i>)</li><li><div class="fn" /><b><a href="qgraphicsgridlayout.html#removeAt">removeAt</a></b> (<i>self</i>, int <i>index</i>)</li><li><div class="fn" />Qt.Alignment <b><a href="qgraphicsgridlayout.html#rowAlignment">rowAlignment</a></b> (<i>self</i>, int <i>row</i>)</li><li><div class="fn" />int <b><a href="qgraphicsgridlayout.html#rowCount">rowCount</a></b> (<i>self</i>)</li><li><div class="fn" />float <b><a href="qgraphicsgridlayout.html#rowMaximumHeight">rowMaximumHeight</a></b> (<i>self</i>, int <i>row</i>)</li><li><div class="fn" />float <b><a href="qgraphicsgridlayout.html#rowMinimumHeight">rowMinimumHeight</a></b> (<i>self</i>, int <i>row</i>)</li><li><div class="fn" />float <b><a href="qgraphicsgridlayout.html#rowPreferredHeight">rowPreferredHeight</a></b> (<i>self</i>, int <i>row</i>)</li><li><div class="fn" />float <b><a href="qgraphicsgridlayout.html#rowSpacing">rowSpacing</a></b> (<i>self</i>, int <i>row</i>)</li><li><div class="fn" />int <b><a href="qgraphicsgridlayout.html#rowStretchFactor">rowStretchFactor</a></b> (<i>self</i>, int <i>row</i>)</li><li><div class="fn" /><b><a href="qgraphicsgridlayout.html#setAlignment">setAlignment</a></b> (<i>self</i>, QGraphicsLayoutItem <i>item</i>, Qt.Alignment <i>alignment</i>)</li><li><div class="fn" /><b><a href="qgraphicsgridlayout.html#setColumnAlignment">setColumnAlignment</a></b> (<i>self</i>, int <i>column</i>, Qt.Alignment <i>alignment</i>)</li><li><div class="fn" /><b><a href="qgraphicsgridlayout.html#setColumnFixedWidth">setColumnFixedWidth</a></b> (<i>self</i>, int <i>column</i>, float <i>width</i>)</li><li><div class="fn" /><b><a href="qgraphicsgridlayout.html#setColumnMaximumWidth">setColumnMaximumWidth</a></b> (<i>self</i>, int <i>column</i>, float <i>width</i>)</li><li><div class="fn" /><b><a href="qgraphicsgridlayout.html#setColumnMinimumWidth">setColumnMinimumWidth</a></b> (<i>self</i>, int <i>column</i>, float <i>width</i>)</li><li><div class="fn" /><b><a href="qgraphicsgridlayout.html#setColumnPreferredWidth">setColumnPreferredWidth</a></b> (<i>self</i>, int <i>column</i>, float <i>width</i>)</li><li><div class="fn" /><b><a href="qgraphicsgridlayout.html#setColumnSpacing">setColumnSpacing</a></b> (<i>self</i>, int <i>column</i>, float <i>spacing</i>)</li><li><div class="fn" /><b><a href="qgraphicsgridlayout.html#setColumnStretchFactor">setColumnStretchFactor</a></b> (<i>self</i>, int <i>column</i>, int <i>stretch</i>)</li><li><div class="fn" /><b><a href="qgraphicsgridlayout.html#setGeometry">setGeometry</a></b> (<i>self</i>, QRectF <i>rect</i>)</li><li><div class="fn" /><b><a href="qgraphicsgridlayout.html#setHorizontalSpacing">setHorizontalSpacing</a></b> (<i>self</i>, float <i>spacing</i>)</li><li><div class="fn" /><b><a href="qgraphicsgridlayout.html#setRowAlignment">setRowAlignment</a></b> (<i>self</i>, int <i>row</i>, Qt.Alignment <i>alignment</i>)</li><li><div class="fn" /><b><a href="qgraphicsgridlayout.html#setRowFixedHeight">setRowFixedHeight</a></b> (<i>self</i>, int <i>row</i>, float <i>height</i>)</li><li><div class="fn" /><b><a href="qgraphicsgridlayout.html#setRowMaximumHeight">setRowMaximumHeight</a></b> (<i>self</i>, int <i>row</i>, float <i>height</i>)</li><li><div class="fn" /><b><a href="qgraphicsgridlayout.html#setRowMinimumHeight">setRowMinimumHeight</a></b> (<i>self</i>, int <i>row</i>, float <i>height</i>)</li><li><div class="fn" /><b><a href="qgraphicsgridlayout.html#setRowPreferredHeight">setRowPreferredHeight</a></b> (<i>self</i>, int <i>row</i>, float <i>height</i>)</li><li><div class="fn" /><b><a href="qgraphicsgridlayout.html#setRowSpacing">setRowSpacing</a></b> (<i>self</i>, int <i>row</i>, float <i>spacing</i>)</li><li><div class="fn" /><b><a href="qgraphicsgridlayout.html#setRowStretchFactor">setRowStretchFactor</a></b> (<i>self</i>, int <i>row</i>, int <i>stretch</i>)</li><li><div class="fn" /><b><a href="qgraphicsgridlayout.html#setSpacing">setSpacing</a></b> (<i>self</i>, float <i>spacing</i>)</li><li><div class="fn" /><b><a href="qgraphicsgridlayout.html#setVerticalSpacing">setVerticalSpacing</a></b> (<i>self</i>, float <i>spacing</i>)</li><li><div class="fn" />QSizeF <b><a href="qgraphicsgridlayout.html#sizeHint">sizeHint</a></b> (<i>self</i>, Qt.SizeHint <i>which</i>, QSizeF <i>constraint</i> = QSizeF())</li><li><div class="fn" />float <b><a href="qgraphicsgridlayout.html#verticalSpacing">verticalSpacing</a></b> (<i>self</i>)</li></ul><a name="details" /><hr /><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="highlightedCode brush: cpp"> QGraphicsScene scene; QGraphicsWidget *textEdit = scene.addWidget(new QTextEdit); QGraphicsWidget *pushButton = scene.addWidget(new QPushButton); QGraphicsGridLayout *layout = new QGraphicsGridLayout; layout->addItem(textEdit, 0, 0); layout->addItem(pushButton, 0, 1); QGraphicsWidget *form = new QGraphicsWidget; form->setLayout(layout); scene.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="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> <hr /><h2>Method Documentation</h2><h3 class="fn"><a name="QGraphicsGridLayout" />QGraphicsGridLayout.__init__ (<i>self</i>, <a href="qgraphicslayoutitem.html">QGraphicsLayoutItem</a> <i>parent</i> = None)</h3><p>The <i>parent</i> argument, if not None, causes <i>self</i> to be owned by Qt instead of PyQt.</p><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> <h3 class="fn"><a name="addItem" />QGraphicsGridLayout.addItem (<i>self</i>, <a href="qgraphicslayoutitem.html">QGraphicsLayoutItem</a> <i>item</i>, int <i>row</i>, int <i>column</i>, int <i>rowSpan</i>, int <i>columnSpan</i>, <a href="qt-alignment.html">Qt.Alignment</a> <i>alignment</i> = 0)</h3><p>The <i>item</i> argument has it's ownership transferred to Qt.</p><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> <h3 class="fn"><a name="addItem-2" />QGraphicsGridLayout.addItem (<i>self</i>, <a href="qgraphicslayoutitem.html">QGraphicsLayoutItem</a> <i>aitem</i>, int <i>arow</i>, int <i>acolumn</i>, <a href="qt-alignment.html">Qt.Alignment</a> <i>alignment</i> = 0)</h3><p>The <i>aitem</i> argument, if not None, causes <i>self</i> to be owned by Qt instead of PyQt.</p><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> <h3 class="fn"><a name="alignment" /><a href="qt-alignment.html">Qt.Alignment</a> QGraphicsGridLayout.alignment (<i>self</i>, <a href="qgraphicslayoutitem.html">QGraphicsLayoutItem</a> <i>item</i>)</h3><p>Returns the alignment for <i>item</i>.</p> <p>See also <a href="qgraphicsgridlayout.html#setAlignment">setAlignment</a>().</p> <h3 class="fn"><a name="columnAlignment" /><a href="qt-alignment.html">Qt.Alignment</a> QGraphicsGridLayout.columnAlignment (<i>self</i>, int <i>column</i>)</h3><p>Returns the alignment for <i>column</i>.</p> <p>See also <a href="qgraphicsgridlayout.html#setColumnAlignment">setColumnAlignment</a>().</p> <h3 class="fn"><a name="columnCount" />int QGraphicsGridLayout.columnCount (<i>self</i>)</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> <h3 class="fn"><a name="columnMaximumWidth" />float QGraphicsGridLayout.columnMaximumWidth (<i>self</i>, int <i>column</i>)</h3><p>Returns the maximum width for <i>column</i>.</p> <p>See also <a href="qgraphicsgridlayout.html#setColumnMaximumWidth">setColumnMaximumWidth</a>().</p> <h3 class="fn"><a name="columnMinimumWidth" />float QGraphicsGridLayout.columnMinimumWidth (<i>self</i>, int <i>column</i>)</h3><p>Returns the minimum width for <i>column</i>.</p> <p>See also <a href="qgraphicsgridlayout.html#setColumnMinimumWidth">setColumnMinimumWidth</a>().</p> <h3 class="fn"><a name="columnPreferredWidth" />float QGraphicsGridLayout.columnPreferredWidth (<i>self</i>, int <i>column</i>)</h3><p>Returns the preferred width for <i>column</i>.</p> <p>See also <a href="qgraphicsgridlayout.html#setColumnPreferredWidth">setColumnPreferredWidth</a>().</p> <h3 class="fn"><a name="columnSpacing" />float QGraphicsGridLayout.columnSpacing (<i>self</i>, int <i>column</i>)</h3><p>Returns the column spacing for <i>column</i>.</p> <p>See also <a href="qgraphicsgridlayout.html#setColumnSpacing">setColumnSpacing</a>().</p> <h3 class="fn"><a name="columnStretchFactor" />int QGraphicsGridLayout.columnStretchFactor (<i>self</i>, int <i>column</i>)</h3><p>Returns the stretch factor for <i>column</i>.</p> <p>See also <a href="qgraphicsgridlayout.html#setColumnStretchFactor">setColumnStretchFactor</a>().</p> <h3 class="fn"><a name="count" />int QGraphicsGridLayout.count (<i>self</i>)</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> <h3 class="fn"><a name="horizontalSpacing" />float QGraphicsGridLayout.horizontalSpacing (<i>self</i>)</h3><p>Returns the default horizontal spacing for the grid layout.</p> <p>See also <a href="qgraphicsgridlayout.html#setHorizontalSpacing">setHorizontalSpacing</a>().</p> <h3 class="fn"><a name="invalidate" />QGraphicsGridLayout.invalidate (<i>self</i>)</h3><p>Reimplemented from <a href="qgraphicslayout.html#invalidate">QGraphicsLayout.invalidate</a>().</p> <h3 class="fn"><a name="itemAt" /><a href="qgraphicslayoutitem.html">QGraphicsLayoutItem</a> QGraphicsGridLayout.itemAt (<i>self</i>, int <i>row</i>, int <i>column</i>)</h3><p>Returns a pointer to the layout item at (<i>row</i>, <i>column</i>).</p> <h3 class="fn"><a name="itemAt-2" /><a href="qgraphicslayoutitem.html">QGraphicsLayoutItem</a> QGraphicsGridLayout.itemAt (<i>self</i>, int <i>index</i>)</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> <h3 class="fn"><a name="removeAt" />QGraphicsGridLayout.removeAt (<i>self</i>, int <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>See also <a href="qgraphicsgridlayout.html#addItem">addItem</a>().</p> <h3 class="fn"><a name="rowAlignment" /><a href="qt-alignment.html">Qt.Alignment</a> QGraphicsGridLayout.rowAlignment (<i>self</i>, int <i>row</i>)</h3><p>Returns the alignment of <i>row</i>.</p> <p>See also <a href="qgraphicsgridlayout.html#setRowAlignment">setRowAlignment</a>().</p> <h3 class="fn"><a name="rowCount" />int QGraphicsGridLayout.rowCount (<i>self</i>)</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> <h3 class="fn"><a name="rowMaximumHeight" />float QGraphicsGridLayout.rowMaximumHeight (<i>self</i>, int <i>row</i>)</h3><p>Returns the maximum height for row, <i>row</i>.</p> <p>See also <a href="qgraphicsgridlayout.html#setRowMaximumHeight">setRowMaximumHeight</a>().</p> <h3 class="fn"><a name="rowMinimumHeight" />float QGraphicsGridLayout.rowMinimumHeight (<i>self</i>, int <i>row</i>)</h3><p>Returns the minimum height for row, <i>row</i>.</p> <p>See also <a href="qgraphicsgridlayout.html#setRowMinimumHeight">setRowMinimumHeight</a>().</p> <h3 class="fn"><a name="rowPreferredHeight" />float QGraphicsGridLayout.rowPreferredHeight (<i>self</i>, int <i>row</i>)</h3><p>Returns the preferred height for row, <i>row</i>.</p> <p>See also <a href="qgraphicsgridlayout.html#setRowPreferredHeight">setRowPreferredHeight</a>().</p> <h3 class="fn"><a name="rowSpacing" />float QGraphicsGridLayout.rowSpacing (<i>self</i>, int <i>row</i>)</h3><p>Returns the row spacing for <i>row</i>.</p> <p>See also <a href="qgraphicsgridlayout.html#setRowSpacing">setRowSpacing</a>().</p> <h3 class="fn"><a name="rowStretchFactor" />int QGraphicsGridLayout.rowStretchFactor (<i>self</i>, int <i>row</i>)</h3><p>Returns the stretch factor for <i>row</i>.</p> <p>See also <a href="qgraphicsgridlayout.html#setRowStretchFactor">setRowStretchFactor</a>().</p> <h3 class="fn"><a name="setAlignment" />QGraphicsGridLayout.setAlignment (<i>self</i>, <a href="qgraphicslayoutitem.html">QGraphicsLayoutItem</a> <i>item</i>, <a href="qt-alignment.html">Qt.Alignment</a> <i>alignment</i>)</h3><p>Sets the alignment for <i>item</i> to <i>alignment</i>.</p> <p>See also <a href="qgraphicsgridlayout.html#alignment">alignment</a>().</p> <h3 class="fn"><a name="setColumnAlignment" />QGraphicsGridLayout.setColumnAlignment (<i>self</i>, int <i>column</i>, <a href="qt-alignment.html">Qt.Alignment</a> <i>alignment</i>)</h3><p>Sets the alignment for <i>column</i> to <i>alignment</i>.</p> <p>See also <a href="qgraphicsgridlayout.html#columnAlignment">columnAlignment</a>().</p> <h3 class="fn"><a name="setColumnFixedWidth" />QGraphicsGridLayout.setColumnFixedWidth (<i>self</i>, int <i>column</i>, float <i>width</i>)</h3><p>Sets the fixed width of <i>column</i> to <i>width</i>.</p> <h3 class="fn"><a name="setColumnMaximumWidth" />QGraphicsGridLayout.setColumnMaximumWidth (<i>self</i>, int <i>column</i>, float <i>width</i>)</h3><p>Sets the maximum width of <i>column</i> to <i>width</i>.</p> <p>See also <a href="qgraphicsgridlayout.html#columnMaximumWidth">columnMaximumWidth</a>().</p> <h3 class="fn"><a name="setColumnMinimumWidth" />QGraphicsGridLayout.setColumnMinimumWidth (<i>self</i>, int <i>column</i>, float <i>width</i>)</h3><p>Sets the minimum width for <i>column</i> to <i>width</i>.</p> <p>See also <a href="qgraphicsgridlayout.html#columnMinimumWidth">columnMinimumWidth</a>().</p> <h3 class="fn"><a name="setColumnPreferredWidth" />QGraphicsGridLayout.setColumnPreferredWidth (<i>self</i>, int <i>column</i>, float <i>width</i>)</h3><p>Sets the preferred width for <i>column</i> to <i>width</i>.</p> <p>See also <a href="qgraphicsgridlayout.html#columnPreferredWidth">columnPreferredWidth</a>().</p> <h3 class="fn"><a name="setColumnSpacing" />QGraphicsGridLayout.setColumnSpacing (<i>self</i>, int <i>column</i>, float <i>spacing</i>)</h3><p>Sets the spacing for <i>column</i> to <i>spacing</i>.</p> <p>See also <a href="qgraphicsgridlayout.html#columnSpacing">columnSpacing</a>().</p> <h3 class="fn"><a name="setColumnStretchFactor" />QGraphicsGridLayout.setColumnStretchFactor (<i>self</i>, int <i>column</i>, int <i>stretch</i>)</h3><p>Sets the stretch factor for <i>column</i> to <i>stretch</i>.</p> <p>See also <a href="qgraphicsgridlayout.html#columnStretchFactor">columnStretchFactor</a>().</p> <h3 class="fn"><a name="setGeometry" />QGraphicsGridLayout.setGeometry (<i>self</i>, <a href="qrectf.html">QRectF</a> <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> <h3 class="fn"><a name="setHorizontalSpacing" />QGraphicsGridLayout.setHorizontalSpacing (<i>self</i>, float <i>spacing</i>)</h3><p>Sets the default horizontal spacing for the grid layout to <i>spacing</i>.</p> <p>See also <a href="qgraphicsgridlayout.html#horizontalSpacing">horizontalSpacing</a>().</p> <h3 class="fn"><a name="setRowAlignment" />QGraphicsGridLayout.setRowAlignment (<i>self</i>, int <i>row</i>, <a href="qt-alignment.html">Qt.Alignment</a> <i>alignment</i>)</h3><p>Sets the alignment of <i>row</i> to <i>alignment</i>.</p> <p>See also <a href="qgraphicsgridlayout.html#rowAlignment">rowAlignment</a>().</p> <h3 class="fn"><a name="setRowFixedHeight" />QGraphicsGridLayout.setRowFixedHeight (<i>self</i>, int <i>row</i>, float <i>height</i>)</h3><p>Sets the fixed height for row, <i>row</i>, to <i>height</i>.</p> <h3 class="fn"><a name="setRowMaximumHeight" />QGraphicsGridLayout.setRowMaximumHeight (<i>self</i>, int <i>row</i>, float <i>height</i>)</h3><p>Sets the maximum height for row, <i>row</i>, to <i>height</i>.</p> <p>See also <a href="qgraphicsgridlayout.html#rowMaximumHeight">rowMaximumHeight</a>().</p> <h3 class="fn"><a name="setRowMinimumHeight" />QGraphicsGridLayout.setRowMinimumHeight (<i>self</i>, int <i>row</i>, float <i>height</i>)</h3><p>Sets the minimum height for row, <i>row</i>, to <i>height</i>.</p> <p>See also <a href="qgraphicsgridlayout.html#rowMinimumHeight">rowMinimumHeight</a>().</p> <h3 class="fn"><a name="setRowPreferredHeight" />QGraphicsGridLayout.setRowPreferredHeight (<i>self</i>, int <i>row</i>, float <i>height</i>)</h3><p>Sets the preferred height for row, <i>row</i>, to <i>height</i>.</p> <p>See also <a href="qgraphicsgridlayout.html#rowPreferredHeight">rowPreferredHeight</a>().</p> <h3 class="fn"><a name="setRowSpacing" />QGraphicsGridLayout.setRowSpacing (<i>self</i>, int <i>row</i>, float <i>spacing</i>)</h3><p>Sets the spacing for <i>row</i> to <i>spacing</i>.</p> <p>See also <a href="qgraphicsgridlayout.html#rowSpacing">rowSpacing</a>().</p> <h3 class="fn"><a name="setRowStretchFactor" />QGraphicsGridLayout.setRowStretchFactor (<i>self</i>, int <i>row</i>, int <i>stretch</i>)</h3><p>Sets the stretch factor for <i>row</i> to <i>stretch</i>.</p> <p>See also <a href="qgraphicsgridlayout.html#rowStretchFactor">rowStretchFactor</a>().</p> <h3 class="fn"><a name="setSpacing" />QGraphicsGridLayout.setSpacing (<i>self</i>, float <i>spacing</i>)</h3><p>Sets the grid layout's default spacing, both vertical and horizontal, to <i>spacing</i>.</p> <p>See also <a href="qgraphicsgridlayout.html#rowSpacing">rowSpacing</a>() and <a href="qgraphicsgridlayout.html#columnSpacing">columnSpacing</a>().</p> <h3 class="fn"><a name="setVerticalSpacing" />QGraphicsGridLayout.setVerticalSpacing (<i>self</i>, float <i>spacing</i>)</h3><p>Sets the default vertical spacing for the grid layout to <i>spacing</i>.</p> <p>See also <a href="qgraphicsgridlayout.html#verticalSpacing">verticalSpacing</a>().</p> <h3 class="fn"><a name="sizeHint" /><a href="qsizef.html">QSizeF</a> QGraphicsGridLayout.sizeHint (<i>self</i>, <a href="qt.html#SizeHint-enum">Qt.SizeHint</a> <i>which</i>, <a href="qsizef.html">QSizeF</a> <i>constraint</i> = QSizeF())</h3><p>Reimplemented from <a href="qgraphicslayoutitem.html#sizeHint">QGraphicsLayoutItem.sizeHint</a>().</p> <h3 class="fn"><a name="verticalSpacing" />float QGraphicsGridLayout.verticalSpacing (<i>self</i>)</h3><p>Returns the default vertical spacing for the grid layout.</p> <p>See also <a href="qgraphicsgridlayout.html#setVerticalSpacing">setVerticalSpacing</a>().</p> <address><hr /><div align="center"><table border="0" cellspacing="0" width="100%"><tr class="address"><td align="left" width="25%">PyQt 4.8.3 for X11</td><td align="center" width="50%">Copyright © <a href="http://www.riverbankcomputing.com">Riverbank Computing Ltd</a> and <a href="http://www.qtsoftware.com">Nokia</a> 2011</td><td align="right" width="25%">Qt 4.7.1</td></tr></table></div></address></body></html>