1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148
|
<?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, int, int, int, int, 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, int, int, 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)</li><li><div class="fn" />Qt.Alignment <b><a href="qgraphicsgridlayout.html#columnAlignment">columnAlignment</a></b> (<i>self</i>, int)</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)</li><li><div class="fn" />float <b><a href="qgraphicsgridlayout.html#columnMinimumWidth">columnMinimumWidth</a></b> (<i>self</i>, int)</li><li><div class="fn" />float <b><a href="qgraphicsgridlayout.html#columnPreferredWidth">columnPreferredWidth</a></b> (<i>self</i>, int)</li><li><div class="fn" />float <b><a href="qgraphicsgridlayout.html#columnSpacing">columnSpacing</a></b> (<i>self</i>, int)</li><li><div class="fn" />int <b><a href="qgraphicsgridlayout.html#columnStretchFactor">columnStretchFactor</a></b> (<i>self</i>, int)</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, int)</li><li><div class="fn" />QGraphicsLayoutItem <b><a href="qgraphicsgridlayout.html#itemAt-2">itemAt</a></b> (<i>self</i>, int)</li><li><div class="fn" /><b><a href="qgraphicsgridlayout.html#removeAt">removeAt</a></b> (<i>self</i>, int)</li><li><div class="fn" />Qt.Alignment <b><a href="qgraphicsgridlayout.html#rowAlignment">rowAlignment</a></b> (<i>self</i>, int)</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)</li><li><div class="fn" />float <b><a href="qgraphicsgridlayout.html#rowMinimumHeight">rowMinimumHeight</a></b> (<i>self</i>, int)</li><li><div class="fn" />float <b><a href="qgraphicsgridlayout.html#rowPreferredHeight">rowPreferredHeight</a></b> (<i>self</i>, int)</li><li><div class="fn" />float <b><a href="qgraphicsgridlayout.html#rowSpacing">rowSpacing</a></b> (<i>self</i>, int)</li><li><div class="fn" />int <b><a href="qgraphicsgridlayout.html#rowStretchFactor">rowStretchFactor</a></b> (<i>self</i>, int)</li><li><div class="fn" /><b><a href="qgraphicsgridlayout.html#setAlignment">setAlignment</a></b> (<i>self</i>, QGraphicsLayoutItem, Qt.Alignment)</li><li><div class="fn" /><b><a href="qgraphicsgridlayout.html#setColumnAlignment">setColumnAlignment</a></b> (<i>self</i>, int, Qt.Alignment)</li><li><div class="fn" /><b><a href="qgraphicsgridlayout.html#setColumnFixedWidth">setColumnFixedWidth</a></b> (<i>self</i>, int, float)</li><li><div class="fn" /><b><a href="qgraphicsgridlayout.html#setColumnMaximumWidth">setColumnMaximumWidth</a></b> (<i>self</i>, int, float)</li><li><div class="fn" /><b><a href="qgraphicsgridlayout.html#setColumnMinimumWidth">setColumnMinimumWidth</a></b> (<i>self</i>, int, float)</li><li><div class="fn" /><b><a href="qgraphicsgridlayout.html#setColumnPreferredWidth">setColumnPreferredWidth</a></b> (<i>self</i>, int, float)</li><li><div class="fn" /><b><a href="qgraphicsgridlayout.html#setColumnSpacing">setColumnSpacing</a></b> (<i>self</i>, int, float)</li><li><div class="fn" /><b><a href="qgraphicsgridlayout.html#setColumnStretchFactor">setColumnStretchFactor</a></b> (<i>self</i>, int, int)</li><li><div class="fn" /><b><a href="qgraphicsgridlayout.html#setGeometry">setGeometry</a></b> (<i>self</i>, QRectF)</li><li><div class="fn" /><b><a href="qgraphicsgridlayout.html#setHorizontalSpacing">setHorizontalSpacing</a></b> (<i>self</i>, float)</li><li><div class="fn" /><b><a href="qgraphicsgridlayout.html#setRowAlignment">setRowAlignment</a></b> (<i>self</i>, int, Qt.Alignment)</li><li><div class="fn" /><b><a href="qgraphicsgridlayout.html#setRowFixedHeight">setRowFixedHeight</a></b> (<i>self</i>, int, float)</li><li><div class="fn" /><b><a href="qgraphicsgridlayout.html#setRowMaximumHeight">setRowMaximumHeight</a></b> (<i>self</i>, int, float)</li><li><div class="fn" /><b><a href="qgraphicsgridlayout.html#setRowMinimumHeight">setRowMinimumHeight</a></b> (<i>self</i>, int, float)</li><li><div class="fn" /><b><a href="qgraphicsgridlayout.html#setRowPreferredHeight">setRowPreferredHeight</a></b> (<i>self</i>, int, float)</li><li><div class="fn" /><b><a href="qgraphicsgridlayout.html#setRowSpacing">setRowSpacing</a></b> (<i>self</i>, int, float)</li><li><div class="fn" /><b><a href="qgraphicsgridlayout.html#setRowStretchFactor">setRowStretchFactor</a></b> (<i>self</i>, int, int)</li><li><div class="fn" /><b><a href="qgraphicsgridlayout.html#setSpacing">setSpacing</a></b> (<i>self</i>, float)</li><li><div class="fn" /><b><a href="qgraphicsgridlayout.html#setVerticalSpacing">setVerticalSpacing</a></b> (<i>self</i>, float)</li><li><div class="fn" />QSizeF <b><a href="qgraphicsgridlayout.html#sizeHint">sizeHint</a></b> (<i>self</i>, Qt.SizeHint, 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#setLayout">QGraphicsWidget.setLayout</a>(). QGraphicsGridLayout automatically computes the dimensions of the grid as you add items.</p>
<pre> 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>
<p>See also <a href="qgraphicslinearlayout.html">QGraphicsLinearLayout</a> and <a href="qgraphicswidget.html">QGraphicsWidget</a>.</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>
<a name="//apple_ref/cpp/instm/QGraphicsGridLayout/~QGraphicsGridLayout" />
<h3 class="fn"><a name="addItem" />QGraphicsGridLayout.addItem (<i>self</i>, <a href="qgraphicslayoutitem.html">QGraphicsLayoutItem</a>, int, int, int, int, <a href="qt-alignment.html">Qt.Alignment</a> <i>alignment</i> = 0)</h3><p>The <i>QGraphicsLayoutItem</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>, int, int, <a href="qt-alignment.html">Qt.Alignment</a> <i>alignment</i> = 0)</h3><p>The <i>QGraphicsLayoutItem</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>
<a name="//apple_ref/cpp/instm/QGraphicsGridLayout/alignment" />
<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>)</h3><p>Returns the alignment for <i>item</i>.</p>
<p>See also <a href="qgraphicsgridlayout.html#setAlignment">setAlignment</a>().</p>
<a name="//apple_ref/cpp/instm/QGraphicsGridLayout/columnAlignment" />
<h3 class="fn"><a name="columnAlignment" /><a href="qt-alignment.html">Qt.Alignment</a> QGraphicsGridLayout.columnAlignment (<i>self</i>, int)</h3><p>Returns the alignment for <i>column</i>.</p>
<p>See also <a href="qgraphicsgridlayout.html#setColumnAlignment">setColumnAlignment</a>().</p>
<a name="//apple_ref/cpp/instm/QGraphicsGridLayout/columnCount" />
<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>
<a name="//apple_ref/cpp/instm/QGraphicsGridLayout/columnMaximumWidth" />
<h3 class="fn"><a name="columnMaximumWidth" />float QGraphicsGridLayout.columnMaximumWidth (<i>self</i>, int)</h3><p>Returns the maximum width for <i>column</i>.</p>
<p>See also <a href="qgraphicsgridlayout.html#setColumnMaximumWidth">setColumnMaximumWidth</a>().</p>
<a name="//apple_ref/cpp/instm/QGraphicsGridLayout/columnMinimumWidth" />
<h3 class="fn"><a name="columnMinimumWidth" />float QGraphicsGridLayout.columnMinimumWidth (<i>self</i>, int)</h3><p>Returns the minimum width for <i>column</i>.</p>
<p>See also <a href="qgraphicsgridlayout.html#setColumnMinimumWidth">setColumnMinimumWidth</a>().</p>
<a name="//apple_ref/cpp/instm/QGraphicsGridLayout/columnPreferredWidth" />
<h3 class="fn"><a name="columnPreferredWidth" />float QGraphicsGridLayout.columnPreferredWidth (<i>self</i>, int)</h3><p>Returns the preferred width for <i>column</i>.</p>
<p>See also <a href="qgraphicsgridlayout.html#setColumnPreferredWidth">setColumnPreferredWidth</a>().</p>
<a name="//apple_ref/cpp/instm/QGraphicsGridLayout/columnSpacing" />
<h3 class="fn"><a name="columnSpacing" />float QGraphicsGridLayout.columnSpacing (<i>self</i>, int)</h3><p>Returns the column spacing for <i>column</i>.</p>
<p>See also <a href="qgraphicsgridlayout.html#setColumnSpacing">setColumnSpacing</a>().</p>
<a name="//apple_ref/cpp/instm/QGraphicsGridLayout/columnStretchFactor" />
<h3 class="fn"><a name="columnStretchFactor" />int QGraphicsGridLayout.columnStretchFactor (<i>self</i>, int)</h3><p>Returns the stretch factor for <i>column</i>.</p>
<p>See also <a href="qgraphicsgridlayout.html#setColumnStretchFactor">setColumnStretchFactor</a>().</p>
<a name="//apple_ref/cpp/instm/QGraphicsGridLayout/count" />
<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>
<a name="//apple_ref/cpp/instm/QGraphicsGridLayout/horizontalSpacing" />
<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>
<a name="//apple_ref/cpp/instm/QGraphicsGridLayout/invalidate" />
<h3 class="fn"><a name="invalidate" />QGraphicsGridLayout.invalidate (<i>self</i>)</h3><p>Reimplemented from <a href="qgraphicslayout.html#invalidate">QGraphicsLayout.invalidate</a>().</p>
<a name="//apple_ref/cpp/instm/QGraphicsGridLayout/itemAt" />
<h3 class="fn"><a name="itemAt" /><a href="qgraphicslayoutitem.html">QGraphicsLayoutItem</a> QGraphicsGridLayout.itemAt (<i>self</i>, int, int)</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)</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>
<a name="//apple_ref/cpp/instm/QGraphicsGridLayout/removeAt" />
<h3 class="fn"><a name="removeAt" />QGraphicsGridLayout.removeAt (<i>self</i>, int)</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>
<a name="//apple_ref/cpp/instm/QGraphicsGridLayout/rowAlignment" />
<h3 class="fn"><a name="rowAlignment" /><a href="qt-alignment.html">Qt.Alignment</a> QGraphicsGridLayout.rowAlignment (<i>self</i>, int)</h3><p>Returns the alignment of <i>row</i>.</p>
<p>See also <a href="qgraphicsgridlayout.html#setRowAlignment">setRowAlignment</a>().</p>
<a name="//apple_ref/cpp/instm/QGraphicsGridLayout/rowCount" />
<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>
<a name="//apple_ref/cpp/instm/QGraphicsGridLayout/rowMaximumHeight" />
<h3 class="fn"><a name="rowMaximumHeight" />float QGraphicsGridLayout.rowMaximumHeight (<i>self</i>, int)</h3><p>Returns the maximum height for row, <i>row</i>.</p>
<p>See also <a href="qgraphicsgridlayout.html#setRowMaximumHeight">setRowMaximumHeight</a>().</p>
<a name="//apple_ref/cpp/instm/QGraphicsGridLayout/rowMinimumHeight" />
<h3 class="fn"><a name="rowMinimumHeight" />float QGraphicsGridLayout.rowMinimumHeight (<i>self</i>, int)</h3><p>Returns the minimum height for row, <i>row</i>.</p>
<p>See also <a href="qgraphicsgridlayout.html#setRowMinimumHeight">setRowMinimumHeight</a>().</p>
<a name="//apple_ref/cpp/instm/QGraphicsGridLayout/rowPreferredHeight" />
<h3 class="fn"><a name="rowPreferredHeight" />float QGraphicsGridLayout.rowPreferredHeight (<i>self</i>, int)</h3><p>Returns the preferred height for row, <i>row</i>.</p>
<p>See also <a href="qgraphicsgridlayout.html#setRowPreferredHeight">setRowPreferredHeight</a>().</p>
<a name="//apple_ref/cpp/instm/QGraphicsGridLayout/rowSpacing" />
<h3 class="fn"><a name="rowSpacing" />float QGraphicsGridLayout.rowSpacing (<i>self</i>, int)</h3><p>Returns the row spacing for <i>row</i>.</p>
<p>See also <a href="qgraphicsgridlayout.html#setRowSpacing">setRowSpacing</a>().</p>
<a name="//apple_ref/cpp/instm/QGraphicsGridLayout/rowStretchFactor" />
<h3 class="fn"><a name="rowStretchFactor" />int QGraphicsGridLayout.rowStretchFactor (<i>self</i>, int)</h3><p>Returns the stretch factor for <i>row</i>.</p>
<p>See also <a href="qgraphicsgridlayout.html#setRowStretchFactor">setRowStretchFactor</a>().</p>
<a name="//apple_ref/cpp/instm/QGraphicsGridLayout/setAlignment" />
<h3 class="fn"><a name="setAlignment" />QGraphicsGridLayout.setAlignment (<i>self</i>, <a href="qgraphicslayoutitem.html">QGraphicsLayoutItem</a>, <a href="qt-alignment.html">Qt.Alignment</a>)</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>
<a name="//apple_ref/cpp/instm/QGraphicsGridLayout/setColumnAlignment" />
<h3 class="fn"><a name="setColumnAlignment" />QGraphicsGridLayout.setColumnAlignment (<i>self</i>, int, <a href="qt-alignment.html">Qt.Alignment</a>)</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>
<a name="//apple_ref/cpp/instm/QGraphicsGridLayout/setColumnFixedWidth" />
<h3 class="fn"><a name="setColumnFixedWidth" />QGraphicsGridLayout.setColumnFixedWidth (<i>self</i>, int, float)</h3><p>Sets the fixed width of <i>column</i> to <i>width</i>.</p>
<a name="//apple_ref/cpp/instm/QGraphicsGridLayout/setColumnMaximumWidth" />
<h3 class="fn"><a name="setColumnMaximumWidth" />QGraphicsGridLayout.setColumnMaximumWidth (<i>self</i>, int, float)</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>
<a name="//apple_ref/cpp/instm/QGraphicsGridLayout/setColumnMinimumWidth" />
<h3 class="fn"><a name="setColumnMinimumWidth" />QGraphicsGridLayout.setColumnMinimumWidth (<i>self</i>, int, float)</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>
<a name="//apple_ref/cpp/instm/QGraphicsGridLayout/setColumnPreferredWidth" />
<h3 class="fn"><a name="setColumnPreferredWidth" />QGraphicsGridLayout.setColumnPreferredWidth (<i>self</i>, int, float)</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>
<a name="//apple_ref/cpp/instm/QGraphicsGridLayout/setColumnSpacing" />
<h3 class="fn"><a name="setColumnSpacing" />QGraphicsGridLayout.setColumnSpacing (<i>self</i>, int, float)</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>
<a name="//apple_ref/cpp/instm/QGraphicsGridLayout/setColumnStretchFactor" />
<h3 class="fn"><a name="setColumnStretchFactor" />QGraphicsGridLayout.setColumnStretchFactor (<i>self</i>, int, int)</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>
<a name="//apple_ref/cpp/instm/QGraphicsGridLayout/setGeometry" />
<h3 class="fn"><a name="setGeometry" />QGraphicsGridLayout.setGeometry (<i>self</i>, <a href="qrectf.html">QRectF</a>)</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>
<a name="//apple_ref/cpp/instm/QGraphicsGridLayout/setHorizontalSpacing" />
<h3 class="fn"><a name="setHorizontalSpacing" />QGraphicsGridLayout.setHorizontalSpacing (<i>self</i>, float)</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>
<a name="//apple_ref/cpp/instm/QGraphicsGridLayout/setRowAlignment" />
<h3 class="fn"><a name="setRowAlignment" />QGraphicsGridLayout.setRowAlignment (<i>self</i>, int, <a href="qt-alignment.html">Qt.Alignment</a>)</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>
<a name="//apple_ref/cpp/instm/QGraphicsGridLayout/setRowFixedHeight" />
<h3 class="fn"><a name="setRowFixedHeight" />QGraphicsGridLayout.setRowFixedHeight (<i>self</i>, int, float)</h3><p>Sets the fixed height for row, <i>row</i>, to <i>height</i>.</p>
<a name="//apple_ref/cpp/instm/QGraphicsGridLayout/setRowMaximumHeight" />
<h3 class="fn"><a name="setRowMaximumHeight" />QGraphicsGridLayout.setRowMaximumHeight (<i>self</i>, int, float)</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>
<a name="//apple_ref/cpp/instm/QGraphicsGridLayout/setRowMinimumHeight" />
<h3 class="fn"><a name="setRowMinimumHeight" />QGraphicsGridLayout.setRowMinimumHeight (<i>self</i>, int, float)</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>
<a name="//apple_ref/cpp/instm/QGraphicsGridLayout/setRowPreferredHeight" />
<h3 class="fn"><a name="setRowPreferredHeight" />QGraphicsGridLayout.setRowPreferredHeight (<i>self</i>, int, float)</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>
<a name="//apple_ref/cpp/instm/QGraphicsGridLayout/setRowSpacing" />
<h3 class="fn"><a name="setRowSpacing" />QGraphicsGridLayout.setRowSpacing (<i>self</i>, int, float)</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>
<a name="//apple_ref/cpp/instm/QGraphicsGridLayout/setRowStretchFactor" />
<h3 class="fn"><a name="setRowStretchFactor" />QGraphicsGridLayout.setRowStretchFactor (<i>self</i>, int, int)</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>
<a name="//apple_ref/cpp/instm/QGraphicsGridLayout/setSpacing" />
<h3 class="fn"><a name="setSpacing" />QGraphicsGridLayout.setSpacing (<i>self</i>, float)</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>
<a name="//apple_ref/cpp/instm/QGraphicsGridLayout/setVerticalSpacing" />
<h3 class="fn"><a name="setVerticalSpacing" />QGraphicsGridLayout.setVerticalSpacing (<i>self</i>, float)</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>
<a name="//apple_ref/cpp/instm/QGraphicsGridLayout/sizeHint" />
<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>, <a href="qsizef.html">QSizeF</a> <i>constraint</i> = QSizeF())</h3><p>Reimplemented from <a href="qgraphicslayoutitem.html#sizeHint">QGraphicsLayoutItem.sizeHint</a>().</p>
<a name="//apple_ref/cpp/instm/QGraphicsGridLayout/verticalSpacing" />
<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>
<p /><address><hr /><div align="center"><table border="0" cellspacing="0" width="100%"><tr class="address"><td align="left" width="25%">PyQt 4.7.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> 2010</td><td align="right" width="25%">Qt 4.6.2</td></tr></table></div></address></body></html>
|