File: qgraphicsgridlayout.html

package info (click to toggle)
python-qt4 4.11.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 39,748 kB
  • ctags: 6,146
  • sloc: python: 125,938; cpp: 12,612; xml: 292; makefile: 258; php: 27; sh: 27
file content (248 lines) | stat: -rw-r--r-- 28,113 bytes parent folder | download
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">&#160;&#160;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&#160;&#183; <a href="classes.html"><font color="#004faf">All Classes</font></a>&#160;&#183; <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&#160;<i>parent</i>&#160;=&#160;None)</li><li><div class="fn" /><b><a href="qgraphicsgridlayout.html#addItem">addItem</a></b> (<i>self</i>, QGraphicsLayoutItem&#160;<i>item</i>, int&#160;<i>row</i>, int&#160;<i>column</i>, int&#160;<i>rowSpan</i>, int&#160;<i>columnSpan</i>, Qt.Alignment&#160;<i>alignment</i>&#160;=&#160;0)</li><li><div class="fn" /><b><a href="qgraphicsgridlayout.html#addItem-2">addItem</a></b> (<i>self</i>, QGraphicsLayoutItem&#160;<i>aitem</i>, int&#160;<i>arow</i>, int&#160;<i>acolumn</i>, Qt.Alignment&#160;<i>alignment</i>&#160;=&#160;0)</li><li><div class="fn" />Qt.Alignment <b><a href="qgraphicsgridlayout.html#alignment">alignment</a></b> (<i>self</i>, QGraphicsLayoutItem&#160;<i>item</i>)</li><li><div class="fn" />Qt.Alignment <b><a href="qgraphicsgridlayout.html#columnAlignment">columnAlignment</a></b> (<i>self</i>, int&#160;<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&#160;<i>column</i>)</li><li><div class="fn" />float <b><a href="qgraphicsgridlayout.html#columnMinimumWidth">columnMinimumWidth</a></b> (<i>self</i>, int&#160;<i>column</i>)</li><li><div class="fn" />float <b><a href="qgraphicsgridlayout.html#columnPreferredWidth">columnPreferredWidth</a></b> (<i>self</i>, int&#160;<i>column</i>)</li><li><div class="fn" />float <b><a href="qgraphicsgridlayout.html#columnSpacing">columnSpacing</a></b> (<i>self</i>, int&#160;<i>column</i>)</li><li><div class="fn" />int <b><a href="qgraphicsgridlayout.html#columnStretchFactor">columnStretchFactor</a></b> (<i>self</i>, int&#160;<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&#160;<i>row</i>, int&#160;<i>column</i>)</li><li><div class="fn" />QGraphicsLayoutItem <b><a href="qgraphicsgridlayout.html#itemAt-2">itemAt</a></b> (<i>self</i>, int&#160;<i>index</i>)</li><li><div class="fn" /><b><a href="qgraphicsgridlayout.html#removeAt">removeAt</a></b> (<i>self</i>, int&#160;<i>index</i>)</li><li><div class="fn" /><b><a href="qgraphicsgridlayout.html#removeItem">removeItem</a></b> (<i>self</i>, QGraphicsLayoutItem&#160;<i>item</i>)</li><li><div class="fn" />Qt.Alignment <b><a href="qgraphicsgridlayout.html#rowAlignment">rowAlignment</a></b> (<i>self</i>, int&#160;<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&#160;<i>row</i>)</li><li><div class="fn" />float <b><a href="qgraphicsgridlayout.html#rowMinimumHeight">rowMinimumHeight</a></b> (<i>self</i>, int&#160;<i>row</i>)</li><li><div class="fn" />float <b><a href="qgraphicsgridlayout.html#rowPreferredHeight">rowPreferredHeight</a></b> (<i>self</i>, int&#160;<i>row</i>)</li><li><div class="fn" />float <b><a href="qgraphicsgridlayout.html#rowSpacing">rowSpacing</a></b> (<i>self</i>, int&#160;<i>row</i>)</li><li><div class="fn" />int <b><a href="qgraphicsgridlayout.html#rowStretchFactor">rowStretchFactor</a></b> (<i>self</i>, int&#160;<i>row</i>)</li><li><div class="fn" /><b><a href="qgraphicsgridlayout.html#setAlignment">setAlignment</a></b> (<i>self</i>, QGraphicsLayoutItem&#160;<i>item</i>, Qt.Alignment&#160;<i>alignment</i>)</li><li><div class="fn" /><b><a href="qgraphicsgridlayout.html#setColumnAlignment">setColumnAlignment</a></b> (<i>self</i>, int&#160;<i>column</i>, Qt.Alignment&#160;<i>alignment</i>)</li><li><div class="fn" /><b><a href="qgraphicsgridlayout.html#setColumnFixedWidth">setColumnFixedWidth</a></b> (<i>self</i>, int&#160;<i>column</i>, float&#160;<i>width</i>)</li><li><div class="fn" /><b><a href="qgraphicsgridlayout.html#setColumnMaximumWidth">setColumnMaximumWidth</a></b> (<i>self</i>, int&#160;<i>column</i>, float&#160;<i>width</i>)</li><li><div class="fn" /><b><a href="qgraphicsgridlayout.html#setColumnMinimumWidth">setColumnMinimumWidth</a></b> (<i>self</i>, int&#160;<i>column</i>, float&#160;<i>width</i>)</li><li><div class="fn" /><b><a href="qgraphicsgridlayout.html#setColumnPreferredWidth">setColumnPreferredWidth</a></b> (<i>self</i>, int&#160;<i>column</i>, float&#160;<i>width</i>)</li><li><div class="fn" /><b><a href="qgraphicsgridlayout.html#setColumnSpacing">setColumnSpacing</a></b> (<i>self</i>, int&#160;<i>column</i>, float&#160;<i>spacing</i>)</li><li><div class="fn" /><b><a href="qgraphicsgridlayout.html#setColumnStretchFactor">setColumnStretchFactor</a></b> (<i>self</i>, int&#160;<i>column</i>, int&#160;<i>stretch</i>)</li><li><div class="fn" /><b><a href="qgraphicsgridlayout.html#setGeometry">setGeometry</a></b> (<i>self</i>, QRectF&#160;<i>rect</i>)</li><li><div class="fn" /><b><a href="qgraphicsgridlayout.html#setHorizontalSpacing">setHorizontalSpacing</a></b> (<i>self</i>, float&#160;<i>spacing</i>)</li><li><div class="fn" /><b><a href="qgraphicsgridlayout.html#setRowAlignment">setRowAlignment</a></b> (<i>self</i>, int&#160;<i>row</i>, Qt.Alignment&#160;<i>alignment</i>)</li><li><div class="fn" /><b><a href="qgraphicsgridlayout.html#setRowFixedHeight">setRowFixedHeight</a></b> (<i>self</i>, int&#160;<i>row</i>, float&#160;<i>height</i>)</li><li><div class="fn" /><b><a href="qgraphicsgridlayout.html#setRowMaximumHeight">setRowMaximumHeight</a></b> (<i>self</i>, int&#160;<i>row</i>, float&#160;<i>height</i>)</li><li><div class="fn" /><b><a href="qgraphicsgridlayout.html#setRowMinimumHeight">setRowMinimumHeight</a></b> (<i>self</i>, int&#160;<i>row</i>, float&#160;<i>height</i>)</li><li><div class="fn" /><b><a href="qgraphicsgridlayout.html#setRowPreferredHeight">setRowPreferredHeight</a></b> (<i>self</i>, int&#160;<i>row</i>, float&#160;<i>height</i>)</li><li><div class="fn" /><b><a href="qgraphicsgridlayout.html#setRowSpacing">setRowSpacing</a></b> (<i>self</i>, int&#160;<i>row</i>, float&#160;<i>spacing</i>)</li><li><div class="fn" /><b><a href="qgraphicsgridlayout.html#setRowStretchFactor">setRowStretchFactor</a></b> (<i>self</i>, int&#160;<i>row</i>, int&#160;<i>stretch</i>)</li><li><div class="fn" /><b><a href="qgraphicsgridlayout.html#setSpacing">setSpacing</a></b> (<i>self</i>, float&#160;<i>spacing</i>)</li><li><div class="fn" /><b><a href="qgraphicsgridlayout.html#setVerticalSpacing">setVerticalSpacing</a></b> (<i>self</i>, float&#160;<i>spacing</i>)</li><li><div class="fn" />QSizeF <b><a href="qgraphicsgridlayout.html#sizeHint">sizeHint</a></b> (<i>self</i>, Qt.SizeHint&#160;<i>which</i>, QSizeF&#160;<i>constraint</i>&#160;=&#160;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">&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 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>&#160;<i>parent</i>&#160;=&#160;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>&#160;<i>item</i>, int&#160;<i>row</i>, int&#160;<i>column</i>, int&#160;<i>rowSpan</i>, int&#160;<i>columnSpan</i>, <a href="qt-alignment.html">Qt.Alignment</a>&#160;<i>alignment</i>&#160;=&#160;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>&#160;<i>aitem</i>, int&#160;<i>arow</i>, int&#160;<i>acolumn</i>, <a href="qt-alignment.html">Qt.Alignment</a>&#160;<i>alignment</i>&#160;=&#160;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>&#160;<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&#160;<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&#160;<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&#160;<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&#160;<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&#160;<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&#160;<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&#160;<i>row</i>, int&#160;<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&#160;<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&#160;<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>&#160;<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&#160;<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&#160;<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&#160;<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&#160;<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&#160;<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&#160;<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>&#160;<i>item</i>, <a href="qt-alignment.html">Qt.Alignment</a>&#160;<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&#160;<i>column</i>, <a href="qt-alignment.html">Qt.Alignment</a>&#160;<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&#160;<i>column</i>, float&#160;<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&#160;<i>column</i>, float&#160;<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&#160;<i>column</i>, float&#160;<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&#160;<i>column</i>, float&#160;<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&#160;<i>column</i>, float&#160;<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&#160;<i>column</i>, int&#160;<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>&#160;<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&#160;<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&#160;<i>row</i>, <a href="qt-alignment.html">Qt.Alignment</a>&#160;<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&#160;<i>row</i>, float&#160;<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&#160;<i>row</i>, float&#160;<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&#160;<i>row</i>, float&#160;<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&#160;<i>row</i>, float&#160;<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&#160;<i>row</i>, float&#160;<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&#160;<i>row</i>, int&#160;<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&#160;<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&#160;<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>&#160;<i>which</i>, <a href="qsizef.html">QSizeF</a>&#160;<i>constraint</i>&#160;=&#160;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&#160;4.11.2 for X11</td><td align="center" width="50%">Copyright &#169; <a href="http://www.riverbankcomputing.com">Riverbank&#160;Computing&#160;Ltd</a> and <a href="http://qt.digia.com">Digia</a> 2014</td><td align="right" width="25%">Qt&#160;4.8.6</td></tr></table></div></address></body></html>