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 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248
|
<?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="index.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" /><b><a href="qgraphicsgridlayout.html#removeItem">removeItem</a></b> (<i>self</i>, QGraphicsLayoutItem <i>item</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="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">></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">></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">></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 id="size-hints-and-size-policies-in-qgraphicsgridlayout" name="size-hints-and-size-policies-in-qgraphicsgridlayout" />
<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>
<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><b>See also</b> <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><b>See also</b> <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><b>See also</b> <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><b>See also</b> <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><b>See also</b> <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><b>See also</b> <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><b>See also</b> <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><b>See also</b> <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><b>See also</b> <a href="qgraphicsgridlayout.html#addItem">addItem</a>().</p>
<h3 class="fn"><a name="removeItem" />QGraphicsGridLayout.removeItem (<i>self</i>, <a href="qgraphicslayoutitem.html">QGraphicsLayoutItem</a> <i>item</i>)</h3><p>The <i>item</i> argument</p><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>
<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><b>See also</b> <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><b>See also</b> <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><b>See also</b> <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><b>See also</b> <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><b>See also</b> <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><b>See also</b> <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><b>See also</b> <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><b>See also</b> <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><b>See also</b> <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><b>See also</b> <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><b>See also</b> <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><b>See also</b> <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><b>See also</b> <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><b>See also</b> <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><b>See also</b> <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><b>See also</b> <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><b>See also</b> <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><b>See also</b> <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><b>See also</b> <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><b>See also</b> <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><b>See also</b> <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><b>See also</b> <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><b>See also</b> <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.11.4 for X11</td><td align="center" width="50%">Copyright © <a href="http://www.riverbankcomputing.com">Riverbank Computing Ltd</a> and <a href="http://www.qt.io">The Qt Company</a> 2015</td><td align="right" width="25%">Qt 4.8.7</td></tr></table></div></address></body></html>
|