File: qgraphicsgridlayout.html

package info (click to toggle)
qt4-x11 4%3A4.8.2%2Bdfsg-11
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 701,696 kB
  • sloc: cpp: 2,686,179; ansic: 375,485; python: 25,859; sh: 19,349; xml: 17,091; perl: 14,765; yacc: 5,383; asm: 5,038; makefile: 1,259; lex: 555; ruby: 526; objc: 347; cs: 112; pascal: 112; php: 54; sed: 34
file content (386 lines) | stat: -rw-r--r-- 42,531 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
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qgraphicsgridlayout.cpp -->
  <title>Qt 4.8: QGraphicsGridLayout Class Reference</title>
  <link rel="stylesheet" type="text/css" href="style/offline.css" />
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="content"> 
    <a href="index.html" class="qtref"><span>Qt Reference Documentation</span></a>
  </div>
  <div class="breadcrumb toolblock">
    <ul>
      <li class="first"><a href="index.html">Home</a></li>
      <!--  Breadcrumbs go here -->
<li><a href="modules.html">Modules</a></li>
<li><a href="qtgui.html">QtGui</a></li>
<li>QGraphicsGridLayout</li>
    </ul>
  </div>
</div>
<div class="content mainContent">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
<li class="level2"><a href="#size-hints-and-size-policies-in-qgraphicsgridlayout">Size Hints and Size Policies in QGraphicsGridLayout</a></li>
</ul>
</div>
<h1 class="title">QGraphicsGridLayout Class Reference</h1>
<!-- $$$QGraphicsGridLayout-brief -->
<p>The QGraphicsGridLayout class provides a grid layout for managing widgets in Graphics View. <a href="#details">More...</a></p>
<!-- @@@QGraphicsGridLayout -->
<pre class="cpp"> <span class="preprocessor">#include &lt;QGraphicsGridLayout&gt;</span></pre><p><b>Inherits: </b><a href="qgraphicslayout.html">QGraphicsLayout</a>.</p>
<p>This class was introduced in Qt 4.4.</p>
<ul>
<li><a href="qgraphicsgridlayout-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-functions"></a>
<h2>Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#QGraphicsGridLayout">QGraphicsGridLayout</a></b> ( QGraphicsLayoutItem * <i>parent</i> = 0 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#dtor.QGraphicsGridLayout">~QGraphicsGridLayout</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#addItem">addItem</a></b> ( QGraphicsLayoutItem * <i>item</i>, int <i>row</i>, int <i>column</i>, int <i>rowSpan</i>, int <i>columnSpan</i>, Qt::Alignment <i>alignment</i> = 0 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#addItem-2">addItem</a></b> ( QGraphicsLayoutItem * <i>item</i>, int <i>row</i>, int <i>column</i>, Qt::Alignment <i>alignment</i> = 0 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Qt::Alignment </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#alignment">alignment</a></b> ( QGraphicsLayoutItem * <i>item</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Qt::Alignment </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#columnAlignment">columnAlignment</a></b> ( int <i>column</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#columnCount">columnCount</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#columnMaximumWidth">columnMaximumWidth</a></b> ( int <i>column</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#columnMinimumWidth">columnMinimumWidth</a></b> ( int <i>column</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#columnPreferredWidth">columnPreferredWidth</a></b> ( int <i>column</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#columnSpacing">columnSpacing</a></b> ( int <i>column</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#columnStretchFactor">columnStretchFactor</a></b> ( int <i>column</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#horizontalSpacing">horizontalSpacing</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QGraphicsLayoutItem * </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#itemAt">itemAt</a></b> ( int <i>row</i>, int <i>column</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#removeItem">removeItem</a></b> ( QGraphicsLayoutItem * <i>item</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Qt::Alignment </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#rowAlignment">rowAlignment</a></b> ( int <i>row</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#rowCount">rowCount</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#rowMaximumHeight">rowMaximumHeight</a></b> ( int <i>row</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#rowMinimumHeight">rowMinimumHeight</a></b> ( int <i>row</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#rowPreferredHeight">rowPreferredHeight</a></b> ( int <i>row</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#rowSpacing">rowSpacing</a></b> ( int <i>row</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#rowStretchFactor">rowStretchFactor</a></b> ( int <i>row</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#setAlignment">setAlignment</a></b> ( QGraphicsLayoutItem * <i>item</i>, Qt::Alignment <i>alignment</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#setColumnAlignment">setColumnAlignment</a></b> ( int <i>column</i>, Qt::Alignment <i>alignment</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#setColumnFixedWidth">setColumnFixedWidth</a></b> ( int <i>column</i>, qreal <i>width</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#setColumnMaximumWidth">setColumnMaximumWidth</a></b> ( int <i>column</i>, qreal <i>width</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#setColumnMinimumWidth">setColumnMinimumWidth</a></b> ( int <i>column</i>, qreal <i>width</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#setColumnPreferredWidth">setColumnPreferredWidth</a></b> ( int <i>column</i>, qreal <i>width</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#setColumnSpacing">setColumnSpacing</a></b> ( int <i>column</i>, qreal <i>spacing</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#setColumnStretchFactor">setColumnStretchFactor</a></b> ( int <i>column</i>, int <i>stretch</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#setHorizontalSpacing">setHorizontalSpacing</a></b> ( qreal <i>spacing</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#setRowAlignment">setRowAlignment</a></b> ( int <i>row</i>, Qt::Alignment <i>alignment</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#setRowFixedHeight">setRowFixedHeight</a></b> ( int <i>row</i>, qreal <i>height</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#setRowMaximumHeight">setRowMaximumHeight</a></b> ( int <i>row</i>, qreal <i>height</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#setRowMinimumHeight">setRowMinimumHeight</a></b> ( int <i>row</i>, qreal <i>height</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#setRowPreferredHeight">setRowPreferredHeight</a></b> ( int <i>row</i>, qreal <i>height</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#setRowSpacing">setRowSpacing</a></b> ( int <i>row</i>, qreal <i>spacing</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#setRowStretchFactor">setRowStretchFactor</a></b> ( int <i>row</i>, int <i>stretch</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#setSpacing">setSpacing</a></b> ( qreal <i>spacing</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#setVerticalSpacing">setVerticalSpacing</a></b> ( qreal <i>spacing</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#verticalSpacing">verticalSpacing</a></b> () const</td></tr>
</table>
<a name="reimplemented-public-functions"></a>
<h2>Reimplemented Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> virtual int </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#count">count</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#invalidate">invalidate</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QGraphicsLayoutItem * </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#itemAt-2">itemAt</a></b> ( int <i>index</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#removeAt">removeAt</a></b> ( int <i>index</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#setGeometry">setGeometry</a></b> ( const QRectF &amp; <i>rect</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QSizeF </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsgridlayout.html#sizeHint">sizeHint</a></b> ( Qt::SizeHint <i>which</i>, const QSizeF &amp; <i>constraint</i> = QSizeF() ) const</td></tr>
</table>
<ul>
<li class="fn">10 public functions inherited from <a href="qgraphicslayout.html#public-functions">QGraphicsLayout</a></li>
<li class="fn">35 public functions inherited from <a href="qgraphicslayoutitem.html#public-functions">QGraphicsLayoutItem</a></li>
</ul>
<h3>Additional Inherited Members</h3>
<ul>
<li class="fn">2 static public members inherited from <a href="qgraphicslayout.html#static-public-members">QGraphicsLayout</a></li>
<li class="fn">1 protected function inherited from <a href="qgraphicslayout.html#protected-functions">QGraphicsLayout</a></li>
<li class="fn">3 protected functions inherited from <a href="qgraphicslayoutitem.html#protected-functions">QGraphicsLayoutItem</a></li>
</ul>
<a name="details"></a>
<!-- $$$QGraphicsGridLayout-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The QGraphicsGridLayout class provides a grid layout for managing widgets in Graphics View.</p>
<p>The most common way to use QGraphicsGridLayout is to construct an object on the heap with no parent, add widgets and layouts by calling <a href="qgraphicsgridlayout.html#addItem">addItem</a>(), and finally assign the layout to a widget by calling <a href="qgraphicswidget.html#layout-prop">QGraphicsWidget::setLayout</a>(). QGraphicsGridLayout automatically computes the dimensions of the grid as you add items.</p>
<pre class="cpp"> <span class="type"><a href="qgraphicsscene.html">QGraphicsScene</a></span> scene;
 <span class="type"><a href="qgraphicswidget.html">QGraphicsWidget</a></span> <span class="operator">*</span>textEdit <span class="operator">=</span> scene<span class="operator">.</span>addWidget(<span class="keyword">new</span> <span class="type"><a href="qtextedit.html">QTextEdit</a></span>);
 <span class="type"><a href="qgraphicswidget.html">QGraphicsWidget</a></span> <span class="operator">*</span>pushButton <span class="operator">=</span> scene<span class="operator">.</span>addWidget(<span class="keyword">new</span> <span class="type"><a href="qpushbutton.html">QPushButton</a></span>);

 <span class="type">QGraphicsGridLayout</span> <span class="operator">*</span>layout <span class="operator">=</span> <span class="keyword">new</span> <span class="type">QGraphicsGridLayout</span>;
 layout<span class="operator">-</span><span class="operator">&gt;</span><a href="qgraphicsgridlayout.html#addItem">addItem</a>(textEdit<span class="operator">,</span> <span class="number">0</span><span class="operator">,</span> <span class="number">0</span>);
 layout<span class="operator">-</span><span class="operator">&gt;</span><a href="qgraphicsgridlayout.html#addItem">addItem</a>(pushButton<span class="operator">,</span> <span class="number">0</span><span class="operator">,</span> <span class="number">1</span>);

 <span class="type"><a href="qgraphicswidget.html">QGraphicsWidget</a></span> <span class="operator">*</span>form <span class="operator">=</span> <span class="keyword">new</span> <span class="type"><a href="qgraphicswidget.html">QGraphicsWidget</a></span>;
 form<span class="operator">-</span><span class="operator">&gt;</span>setLayout(layout);
 scene<span class="operator">.</span><a href="qgraphicsgridlayout.html#addItem">addItem</a>(form);</pre>
<p>The layout takes ownership of the items. In some cases when the layout item also inherits from <a href="qgraphicsitem.html">QGraphicsItem</a> (such as <a href="qgraphicswidget.html">QGraphicsWidget</a>) there will be a ambiguity in ownership because the layout item belongs to two ownership hierarchies. See the documentation of <a href="qgraphicslayoutitem.html#setOwnedByLayout">QGraphicsLayoutItem::setOwnedByLayout</a>() how to handle this. You can access each item in the layout by calling <a href="qgraphicsgridlayout.html#count">count</a>() and <a href="qgraphicsgridlayout.html#itemAt">itemAt</a>(). Calling <a href="qgraphicsgridlayout.html#removeAt">removeAt</a>() will remove an item from the layout, without destroying it.</p>
<a name="size-hints-and-size-policies-in-qgraphicsgridlayout"></a>
<h3>Size Hints and Size Policies in QGraphicsGridLayout</h3>
<p>QGraphicsGridLayout respects each item's size hints and size policies, and when a cell in the grid has more space than the items can fill, each item is arranged according to the layout's alignment for that item. You can set an alignment for each item by calling <a href="qgraphicsgridlayout.html#setAlignment">setAlignment</a>(), and check the alignment for any item by calling <a href="qgraphicsgridlayout.html#alignment">alignment</a>(). You can also set the alignment for an entire row or column by calling <a href="qgraphicsgridlayout.html#setRowAlignment">setRowAlignment</a>() and <a href="qgraphicsgridlayout.html#setColumnAlignment">setColumnAlignment</a>() respectively. By default, items are aligned to the top left.</p>
</div>
<p><b>See also </b><a href="qgraphicslinearlayout.html">QGraphicsLinearLayout</a> and <a href="qgraphicswidget.html">QGraphicsWidget</a>.</p>
<!-- @@@QGraphicsGridLayout -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QGraphicsGridLayout[overload1]$$$QGraphicsGridLayoutQGraphicsLayoutItem* -->
<h3 class="fn"><a name="QGraphicsGridLayout"></a>QGraphicsGridLayout::<span class="name">QGraphicsGridLayout</span> ( <span class="type"><a href="qgraphicslayoutitem.html">QGraphicsLayoutItem</a></span> * <i>parent</i> = 0 )</h3>
<p>Constructs a <a href="qgraphicsgridlayout.html">QGraphicsGridLayout</a> instance. <i>parent</i> is passed to <a href="qgraphicslayout.html">QGraphicsLayout</a>'s constructor.</p>
<!-- @@@QGraphicsGridLayout -->
<!-- $$$~QGraphicsGridLayout[overload1]$$$~QGraphicsGridLayout -->
<h3 class="fn"><a name="dtor.QGraphicsGridLayout"></a>QGraphicsGridLayout::<span class="name">~QGraphicsGridLayout</span> ()<tt> [virtual]</tt></h3>
<p>Destroys the <a href="qgraphicsgridlayout.html">QGraphicsGridLayout</a> object.</p>
<!-- @@@~QGraphicsGridLayout -->
<!-- $$$addItem[overload1]$$$addItemQGraphicsLayoutItem*intintintintQt::Alignment -->
<h3 class="fn"><a name="addItem"></a><span class="type">void</span> QGraphicsGridLayout::<span class="name">addItem</span> ( <span class="type"><a href="qgraphicslayoutitem.html">QGraphicsLayoutItem</a></span> * <i>item</i>, <span class="type">int</span> <i>row</i>, <span class="type">int</span> <i>column</i>, <span class="type">int</span> <i>rowSpan</i>, <span class="type">int</span> <i>columnSpan</i>, <span class="type"><a href="qt.html#AlignmentFlag-enum">Qt::Alignment</a></span> <i>alignment</i> = 0 )</h3>
<p>Adds <i>item</i> to the grid on <i>row</i> and <i>column</i>. You can specify a <i>rowSpan</i> and <i>columnSpan</i> and an optional <i>alignment</i>.</p>
<!-- @@@addItem -->
<!-- $$$addItem$$$addItemQGraphicsLayoutItem*intintQt::Alignment -->
<h3 class="fn"><a name="addItem-2"></a><span class="type">void</span> QGraphicsGridLayout::<span class="name">addItem</span> ( <span class="type"><a href="qgraphicslayoutitem.html">QGraphicsLayoutItem</a></span> * <i>item</i>, <span class="type">int</span> <i>row</i>, <span class="type">int</span> <i>column</i>, <span class="type"><a href="qt.html#AlignmentFlag-enum">Qt::Alignment</a></span> <i>alignment</i> = 0 )</h3>
<p>Adds <i>item</i> to the grid on <i>row</i> and <i>column</i>. You can specify an optional <i>alignment</i> for <i>item</i>.</p>
<!-- @@@addItem -->
<!-- $$$alignment[overload1]$$$alignmentQGraphicsLayoutItem* -->
<h3 class="fn"><a name="alignment"></a><span class="type"><a href="qt.html#AlignmentFlag-enum">Qt::Alignment</a></span> QGraphicsGridLayout::<span class="name">alignment</span> ( <span class="type"><a href="qgraphicslayoutitem.html">QGraphicsLayoutItem</a></span> * <i>item</i> ) const</h3>
<p>Returns the alignment for <i>item</i>.</p>
<p><b>See also </b><a href="qgraphicsgridlayout.html#setAlignment">setAlignment</a>().</p>
<!-- @@@alignment -->
<!-- $$$columnAlignment[overload1]$$$columnAlignmentint -->
<h3 class="fn"><a name="columnAlignment"></a><span class="type"><a href="qt.html#AlignmentFlag-enum">Qt::Alignment</a></span> QGraphicsGridLayout::<span class="name">columnAlignment</span> ( <span class="type">int</span> <i>column</i> ) const</h3>
<p>Returns the alignment for <i>column</i>.</p>
<p><b>See also </b><a href="qgraphicsgridlayout.html#setColumnAlignment">setColumnAlignment</a>().</p>
<!-- @@@columnAlignment -->
<!-- $$$columnCount[overload1]$$$columnCount -->
<h3 class="fn"><a name="columnCount"></a><span class="type">int</span> QGraphicsGridLayout::<span class="name">columnCount</span> () const</h3>
<p>Returns the number of columns in the grid layout. This is always one more than the index of the last column that is occupied by a layout item (empty columns are counted except for those at the end).</p>
<!-- @@@columnCount -->
<!-- $$$columnMaximumWidth[overload1]$$$columnMaximumWidthint -->
<h3 class="fn"><a name="columnMaximumWidth"></a><span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> QGraphicsGridLayout::<span class="name">columnMaximumWidth</span> ( <span class="type">int</span> <i>column</i> ) const</h3>
<p>Returns the maximum width for <i>column</i>.</p>
<p><b>See also </b><a href="qgraphicsgridlayout.html#setColumnMaximumWidth">setColumnMaximumWidth</a>().</p>
<!-- @@@columnMaximumWidth -->
<!-- $$$columnMinimumWidth[overload1]$$$columnMinimumWidthint -->
<h3 class="fn"><a name="columnMinimumWidth"></a><span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> QGraphicsGridLayout::<span class="name">columnMinimumWidth</span> ( <span class="type">int</span> <i>column</i> ) const</h3>
<p>Returns the minimum width for <i>column</i>.</p>
<p><b>See also </b><a href="qgraphicsgridlayout.html#setColumnMinimumWidth">setColumnMinimumWidth</a>().</p>
<!-- @@@columnMinimumWidth -->
<!-- $$$columnPreferredWidth[overload1]$$$columnPreferredWidthint -->
<h3 class="fn"><a name="columnPreferredWidth"></a><span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> QGraphicsGridLayout::<span class="name">columnPreferredWidth</span> ( <span class="type">int</span> <i>column</i> ) const</h3>
<p>Returns the preferred width for <i>column</i>.</p>
<p><b>See also </b><a href="qgraphicsgridlayout.html#setColumnPreferredWidth">setColumnPreferredWidth</a>().</p>
<!-- @@@columnPreferredWidth -->
<!-- $$$columnSpacing[overload1]$$$columnSpacingint -->
<h3 class="fn"><a name="columnSpacing"></a><span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> QGraphicsGridLayout::<span class="name">columnSpacing</span> ( <span class="type">int</span> <i>column</i> ) const</h3>
<p>Returns the column spacing for <i>column</i>.</p>
<p><b>See also </b><a href="qgraphicsgridlayout.html#setColumnSpacing">setColumnSpacing</a>().</p>
<!-- @@@columnSpacing -->
<!-- $$$columnStretchFactor[overload1]$$$columnStretchFactorint -->
<h3 class="fn"><a name="columnStretchFactor"></a><span class="type">int</span> QGraphicsGridLayout::<span class="name">columnStretchFactor</span> ( <span class="type">int</span> <i>column</i> ) const</h3>
<p>Returns the stretch factor for <i>column</i>.</p>
<p><b>See also </b><a href="qgraphicsgridlayout.html#setColumnStretchFactor">setColumnStretchFactor</a>().</p>
<!-- @@@columnStretchFactor -->
<!-- $$$count[overload1]$$$count -->
<h3 class="fn"><a name="count"></a><span class="type">int</span> QGraphicsGridLayout::<span class="name">count</span> () const<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="qgraphicslayout.html#count">QGraphicsLayout::count</a>().</p>
<p>Returns the number of layout items in this grid layout.</p>
<!-- @@@count -->
<!-- $$$horizontalSpacing[overload1]$$$horizontalSpacing -->
<h3 class="fn"><a name="horizontalSpacing"></a><span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> QGraphicsGridLayout::<span class="name">horizontalSpacing</span> () const</h3>
<p>Returns the default horizontal spacing for the grid layout.</p>
<p><b>See also </b><a href="qgraphicsgridlayout.html#setHorizontalSpacing">setHorizontalSpacing</a>().</p>
<!-- @@@horizontalSpacing -->
<!-- $$$invalidate[overload1]$$$invalidate -->
<h3 class="fn"><a name="invalidate"></a><span class="type">void</span> QGraphicsGridLayout::<span class="name">invalidate</span> ()<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="qgraphicslayout.html#invalidate">QGraphicsLayout::invalidate</a>().</p>
<!-- @@@invalidate -->
<!-- $$$itemAt[overload1]$$$itemAtintint -->
<h3 class="fn"><a name="itemAt"></a><span class="type"><a href="qgraphicslayoutitem.html">QGraphicsLayoutItem</a></span> * QGraphicsGridLayout::<span class="name">itemAt</span> ( <span class="type">int</span> <i>row</i>, <span class="type">int</span> <i>column</i> ) const</h3>
<p>Returns a pointer to the layout item at (<i>row</i>, <i>column</i>).</p>
<!-- @@@itemAt -->
<!-- $$$itemAt$$$itemAtint -->
<h3 class="fn"><a name="itemAt-2"></a><span class="type"><a href="qgraphicslayoutitem.html">QGraphicsLayoutItem</a></span> * QGraphicsGridLayout::<span class="name">itemAt</span> ( <span class="type">int</span> <i>index</i> ) const<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="qgraphicslayout.html#itemAt">QGraphicsLayout::itemAt</a>().</p>
<p>Returns the layout item at <i>index</i>, or 0 if there is no layout item at this index.</p>
<!-- @@@itemAt -->
<!-- $$$removeAt[overload1]$$$removeAtint -->
<h3 class="fn"><a name="removeAt"></a><span class="type">void</span> QGraphicsGridLayout::<span class="name">removeAt</span> ( <span class="type">int</span> <i>index</i> )<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="qgraphicslayout.html#removeAt">QGraphicsLayout::removeAt</a>().</p>
<p>Removes the layout item at <i>index</i> without destroying it. Ownership of the item is transferred to the caller.</p>
<p><b>See also </b><a href="qgraphicsgridlayout.html#addItem">addItem</a>().</p>
<!-- @@@removeAt -->
<!-- $$$removeItem[overload1]$$$removeItemQGraphicsLayoutItem* -->
<h3 class="fn"><a name="removeItem"></a><span class="type">void</span> QGraphicsGridLayout::<span class="name">removeItem</span> ( <span class="type"><a href="qgraphicslayoutitem.html">QGraphicsLayoutItem</a></span> * <i>item</i> )</h3>
<p>Removes the layout item <i>item</i> without destroying it. Ownership of the item is transferred to the caller.</p>
<p>This function was introduced in Qt 4.8.</p>
<p><b>See also </b><a href="qgraphicsgridlayout.html#addItem">addItem</a>().</p>
<!-- @@@removeItem -->
<!-- $$$rowAlignment[overload1]$$$rowAlignmentint -->
<h3 class="fn"><a name="rowAlignment"></a><span class="type"><a href="qt.html#AlignmentFlag-enum">Qt::Alignment</a></span> QGraphicsGridLayout::<span class="name">rowAlignment</span> ( <span class="type">int</span> <i>row</i> ) const</h3>
<p>Returns the alignment of <i>row</i>.</p>
<p><b>See also </b><a href="qgraphicsgridlayout.html#setRowAlignment">setRowAlignment</a>().</p>
<!-- @@@rowAlignment -->
<!-- $$$rowCount[overload1]$$$rowCount -->
<h3 class="fn"><a name="rowCount"></a><span class="type">int</span> QGraphicsGridLayout::<span class="name">rowCount</span> () const</h3>
<p>Returns the number of rows in the grid layout. This is always one more than the index of the last row that is occupied by a layout item (empty rows are counted except for those at the end).</p>
<!-- @@@rowCount -->
<!-- $$$rowMaximumHeight[overload1]$$$rowMaximumHeightint -->
<h3 class="fn"><a name="rowMaximumHeight"></a><span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> QGraphicsGridLayout::<span class="name">rowMaximumHeight</span> ( <span class="type">int</span> <i>row</i> ) const</h3>
<p>Returns the maximum height for row, <i>row</i>.</p>
<p><b>See also </b><a href="qgraphicsgridlayout.html#setRowMaximumHeight">setRowMaximumHeight</a>().</p>
<!-- @@@rowMaximumHeight -->
<!-- $$$rowMinimumHeight[overload1]$$$rowMinimumHeightint -->
<h3 class="fn"><a name="rowMinimumHeight"></a><span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> QGraphicsGridLayout::<span class="name">rowMinimumHeight</span> ( <span class="type">int</span> <i>row</i> ) const</h3>
<p>Returns the minimum height for row, <i>row</i>.</p>
<p><b>See also </b><a href="qgraphicsgridlayout.html#setRowMinimumHeight">setRowMinimumHeight</a>().</p>
<!-- @@@rowMinimumHeight -->
<!-- $$$rowPreferredHeight[overload1]$$$rowPreferredHeightint -->
<h3 class="fn"><a name="rowPreferredHeight"></a><span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> QGraphicsGridLayout::<span class="name">rowPreferredHeight</span> ( <span class="type">int</span> <i>row</i> ) const</h3>
<p>Returns the preferred height for row, <i>row</i>.</p>
<p><b>See also </b><a href="qgraphicsgridlayout.html#setRowPreferredHeight">setRowPreferredHeight</a>().</p>
<!-- @@@rowPreferredHeight -->
<!-- $$$rowSpacing[overload1]$$$rowSpacingint -->
<h3 class="fn"><a name="rowSpacing"></a><span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> QGraphicsGridLayout::<span class="name">rowSpacing</span> ( <span class="type">int</span> <i>row</i> ) const</h3>
<p>Returns the row spacing for <i>row</i>.</p>
<p><b>See also </b><a href="qgraphicsgridlayout.html#setRowSpacing">setRowSpacing</a>().</p>
<!-- @@@rowSpacing -->
<!-- $$$rowStretchFactor[overload1]$$$rowStretchFactorint -->
<h3 class="fn"><a name="rowStretchFactor"></a><span class="type">int</span> QGraphicsGridLayout::<span class="name">rowStretchFactor</span> ( <span class="type">int</span> <i>row</i> ) const</h3>
<p>Returns the stretch factor for <i>row</i>.</p>
<p><b>See also </b><a href="qgraphicsgridlayout.html#setRowStretchFactor">setRowStretchFactor</a>().</p>
<!-- @@@rowStretchFactor -->
<!-- $$$setAlignment[overload1]$$$setAlignmentQGraphicsLayoutItem*Qt::Alignment -->
<h3 class="fn"><a name="setAlignment"></a><span class="type">void</span> QGraphicsGridLayout::<span class="name">setAlignment</span> ( <span class="type"><a href="qgraphicslayoutitem.html">QGraphicsLayoutItem</a></span> * <i>item</i>, <span class="type"><a href="qt.html#AlignmentFlag-enum">Qt::Alignment</a></span> <i>alignment</i> )</h3>
<p>Sets the alignment for <i>item</i> to <i>alignment</i>.</p>
<p><b>See also </b><a href="qgraphicsgridlayout.html#alignment">alignment</a>().</p>
<!-- @@@setAlignment -->
<!-- $$$setColumnAlignment[overload1]$$$setColumnAlignmentintQt::Alignment -->
<h3 class="fn"><a name="setColumnAlignment"></a><span class="type">void</span> QGraphicsGridLayout::<span class="name">setColumnAlignment</span> ( <span class="type">int</span> <i>column</i>, <span class="type"><a href="qt.html#AlignmentFlag-enum">Qt::Alignment</a></span> <i>alignment</i> )</h3>
<p>Sets the alignment for <i>column</i> to <i>alignment</i>.</p>
<p><b>See also </b><a href="qgraphicsgridlayout.html#columnAlignment">columnAlignment</a>().</p>
<!-- @@@setColumnAlignment -->
<!-- $$$setColumnFixedWidth[overload1]$$$setColumnFixedWidthintqreal -->
<h3 class="fn"><a name="setColumnFixedWidth"></a><span class="type">void</span> QGraphicsGridLayout::<span class="name">setColumnFixedWidth</span> ( <span class="type">int</span> <i>column</i>, <span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> <i>width</i> )</h3>
<p>Sets the fixed width of <i>column</i> to <i>width</i>.</p>
<!-- @@@setColumnFixedWidth -->
<!-- $$$setColumnMaximumWidth[overload1]$$$setColumnMaximumWidthintqreal -->
<h3 class="fn"><a name="setColumnMaximumWidth"></a><span class="type">void</span> QGraphicsGridLayout::<span class="name">setColumnMaximumWidth</span> ( <span class="type">int</span> <i>column</i>, <span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> <i>width</i> )</h3>
<p>Sets the maximum width of <i>column</i> to <i>width</i>.</p>
<p><b>See also </b><a href="qgraphicsgridlayout.html#columnMaximumWidth">columnMaximumWidth</a>().</p>
<!-- @@@setColumnMaximumWidth -->
<!-- $$$setColumnMinimumWidth[overload1]$$$setColumnMinimumWidthintqreal -->
<h3 class="fn"><a name="setColumnMinimumWidth"></a><span class="type">void</span> QGraphicsGridLayout::<span class="name">setColumnMinimumWidth</span> ( <span class="type">int</span> <i>column</i>, <span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> <i>width</i> )</h3>
<p>Sets the minimum width for <i>column</i> to <i>width</i>.</p>
<p><b>See also </b><a href="qgraphicsgridlayout.html#columnMinimumWidth">columnMinimumWidth</a>().</p>
<!-- @@@setColumnMinimumWidth -->
<!-- $$$setColumnPreferredWidth[overload1]$$$setColumnPreferredWidthintqreal -->
<h3 class="fn"><a name="setColumnPreferredWidth"></a><span class="type">void</span> QGraphicsGridLayout::<span class="name">setColumnPreferredWidth</span> ( <span class="type">int</span> <i>column</i>, <span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> <i>width</i> )</h3>
<p>Sets the preferred width for <i>column</i> to <i>width</i>.</p>
<p><b>See also </b><a href="qgraphicsgridlayout.html#columnPreferredWidth">columnPreferredWidth</a>().</p>
<!-- @@@setColumnPreferredWidth -->
<!-- $$$setColumnSpacing[overload1]$$$setColumnSpacingintqreal -->
<h3 class="fn"><a name="setColumnSpacing"></a><span class="type">void</span> QGraphicsGridLayout::<span class="name">setColumnSpacing</span> ( <span class="type">int</span> <i>column</i>, <span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> <i>spacing</i> )</h3>
<p>Sets the spacing for <i>column</i> to <i>spacing</i>.</p>
<p><b>See also </b><a href="qgraphicsgridlayout.html#columnSpacing">columnSpacing</a>().</p>
<!-- @@@setColumnSpacing -->
<!-- $$$setColumnStretchFactor[overload1]$$$setColumnStretchFactorintint -->
<h3 class="fn"><a name="setColumnStretchFactor"></a><span class="type">void</span> QGraphicsGridLayout::<span class="name">setColumnStretchFactor</span> ( <span class="type">int</span> <i>column</i>, <span class="type">int</span> <i>stretch</i> )</h3>
<p>Sets the stretch factor for <i>column</i> to <i>stretch</i>.</p>
<p><b>See also </b><a href="qgraphicsgridlayout.html#columnStretchFactor">columnStretchFactor</a>().</p>
<!-- @@@setColumnStretchFactor -->
<!-- $$$setGeometry[overload1]$$$setGeometryconstQRectF& -->
<h3 class="fn"><a name="setGeometry"></a><span class="type">void</span> QGraphicsGridLayout::<span class="name">setGeometry</span> ( const <span class="type"><a href="qrectf.html">QRectF</a></span> &amp; <i>rect</i> )<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="qgraphicslayoutitem.html#setGeometry">QGraphicsLayoutItem::setGeometry</a>().</p>
<p>Sets the bounding geometry of the grid layout to <i>rect</i>.</p>
<!-- @@@setGeometry -->
<!-- $$$setHorizontalSpacing[overload1]$$$setHorizontalSpacingqreal -->
<h3 class="fn"><a name="setHorizontalSpacing"></a><span class="type">void</span> QGraphicsGridLayout::<span class="name">setHorizontalSpacing</span> ( <span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> <i>spacing</i> )</h3>
<p>Sets the default horizontal spacing for the grid layout to <i>spacing</i>.</p>
<p><b>See also </b><a href="qgraphicsgridlayout.html#horizontalSpacing">horizontalSpacing</a>().</p>
<!-- @@@setHorizontalSpacing -->
<!-- $$$setRowAlignment[overload1]$$$setRowAlignmentintQt::Alignment -->
<h3 class="fn"><a name="setRowAlignment"></a><span class="type">void</span> QGraphicsGridLayout::<span class="name">setRowAlignment</span> ( <span class="type">int</span> <i>row</i>, <span class="type"><a href="qt.html#AlignmentFlag-enum">Qt::Alignment</a></span> <i>alignment</i> )</h3>
<p>Sets the alignment of <i>row</i> to <i>alignment</i>.</p>
<p><b>See also </b><a href="qgraphicsgridlayout.html#rowAlignment">rowAlignment</a>().</p>
<!-- @@@setRowAlignment -->
<!-- $$$setRowFixedHeight[overload1]$$$setRowFixedHeightintqreal -->
<h3 class="fn"><a name="setRowFixedHeight"></a><span class="type">void</span> QGraphicsGridLayout::<span class="name">setRowFixedHeight</span> ( <span class="type">int</span> <i>row</i>, <span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> <i>height</i> )</h3>
<p>Sets the fixed height for row, <i>row</i>, to <i>height</i>.</p>
<!-- @@@setRowFixedHeight -->
<!-- $$$setRowMaximumHeight[overload1]$$$setRowMaximumHeightintqreal -->
<h3 class="fn"><a name="setRowMaximumHeight"></a><span class="type">void</span> QGraphicsGridLayout::<span class="name">setRowMaximumHeight</span> ( <span class="type">int</span> <i>row</i>, <span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> <i>height</i> )</h3>
<p>Sets the maximum height for row, <i>row</i>, to <i>height</i>.</p>
<p><b>See also </b><a href="qgraphicsgridlayout.html#rowMaximumHeight">rowMaximumHeight</a>().</p>
<!-- @@@setRowMaximumHeight -->
<!-- $$$setRowMinimumHeight[overload1]$$$setRowMinimumHeightintqreal -->
<h3 class="fn"><a name="setRowMinimumHeight"></a><span class="type">void</span> QGraphicsGridLayout::<span class="name">setRowMinimumHeight</span> ( <span class="type">int</span> <i>row</i>, <span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> <i>height</i> )</h3>
<p>Sets the minimum height for row, <i>row</i>, to <i>height</i>.</p>
<p><b>See also </b><a href="qgraphicsgridlayout.html#rowMinimumHeight">rowMinimumHeight</a>().</p>
<!-- @@@setRowMinimumHeight -->
<!-- $$$setRowPreferredHeight[overload1]$$$setRowPreferredHeightintqreal -->
<h3 class="fn"><a name="setRowPreferredHeight"></a><span class="type">void</span> QGraphicsGridLayout::<span class="name">setRowPreferredHeight</span> ( <span class="type">int</span> <i>row</i>, <span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> <i>height</i> )</h3>
<p>Sets the preferred height for row, <i>row</i>, to <i>height</i>.</p>
<p><b>See also </b><a href="qgraphicsgridlayout.html#rowPreferredHeight">rowPreferredHeight</a>().</p>
<!-- @@@setRowPreferredHeight -->
<!-- $$$setRowSpacing[overload1]$$$setRowSpacingintqreal -->
<h3 class="fn"><a name="setRowSpacing"></a><span class="type">void</span> QGraphicsGridLayout::<span class="name">setRowSpacing</span> ( <span class="type">int</span> <i>row</i>, <span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> <i>spacing</i> )</h3>
<p>Sets the spacing for <i>row</i> to <i>spacing</i>.</p>
<p><b>See also </b><a href="qgraphicsgridlayout.html#rowSpacing">rowSpacing</a>().</p>
<!-- @@@setRowSpacing -->
<!-- $$$setRowStretchFactor[overload1]$$$setRowStretchFactorintint -->
<h3 class="fn"><a name="setRowStretchFactor"></a><span class="type">void</span> QGraphicsGridLayout::<span class="name">setRowStretchFactor</span> ( <span class="type">int</span> <i>row</i>, <span class="type">int</span> <i>stretch</i> )</h3>
<p>Sets the stretch factor for <i>row</i> to <i>stretch</i>.</p>
<p><b>See also </b><a href="qgraphicsgridlayout.html#rowStretchFactor">rowStretchFactor</a>().</p>
<!-- @@@setRowStretchFactor -->
<!-- $$$setSpacing[overload1]$$$setSpacingqreal -->
<h3 class="fn"><a name="setSpacing"></a><span class="type">void</span> QGraphicsGridLayout::<span class="name">setSpacing</span> ( <span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> <i>spacing</i> )</h3>
<p>Sets the grid layout's default spacing, both vertical and horizontal, to <i>spacing</i>.</p>
<p><b>See also </b><a href="qgraphicsgridlayout.html#rowSpacing">rowSpacing</a>() and <a href="qgraphicsgridlayout.html#columnSpacing">columnSpacing</a>().</p>
<!-- @@@setSpacing -->
<!-- $$$setVerticalSpacing[overload1]$$$setVerticalSpacingqreal -->
<h3 class="fn"><a name="setVerticalSpacing"></a><span class="type">void</span> QGraphicsGridLayout::<span class="name">setVerticalSpacing</span> ( <span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> <i>spacing</i> )</h3>
<p>Sets the default vertical spacing for the grid layout to <i>spacing</i>.</p>
<p><b>See also </b><a href="qgraphicsgridlayout.html#verticalSpacing">verticalSpacing</a>().</p>
<!-- @@@setVerticalSpacing -->
<!-- $$$sizeHint[overload1]$$$sizeHintQt::SizeHintconstQSizeF& -->
<h3 class="fn"><a name="sizeHint"></a><span class="type"><a href="qsizef.html">QSizeF</a></span> QGraphicsGridLayout::<span class="name">sizeHint</span> ( <span class="type"><a href="qt.html#SizeHint-enum">Qt::SizeHint</a></span> <i>which</i>, const <span class="type"><a href="qsizef.html">QSizeF</a></span> &amp; <i>constraint</i> = QSizeF() ) const<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="qgraphicslayoutitem.html#sizeHint">QGraphicsLayoutItem::sizeHint</a>().</p>
<!-- @@@sizeHint -->
<!-- $$$verticalSpacing[overload1]$$$verticalSpacing -->
<h3 class="fn"><a name="verticalSpacing"></a><span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> QGraphicsGridLayout::<span class="name">verticalSpacing</span> () const</h3>
<p>Returns the default vertical spacing for the grid layout.</p>
<p><b>See also </b><a href="qgraphicsgridlayout.html#setVerticalSpacing">setVerticalSpacing</a>().</p>
<!-- @@@verticalSpacing -->
</div>
  <div class="ft">
    <span></span>
  </div>
</div> 
<div class="footer">
    <p>
      <acronym title="Copyright">&copy;</acronym> 2012 Nokia Corporation and/or its
      subsidiaries. Documentation contributions included herein are the copyrights of
      their respective owners.</p>
    <br />
    <p>
      The documentation provided herein is licensed under the terms of the
      <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation
      License version 1.3</a> as published by the Free Software Foundation.</p>
    <p>
      Documentation sources may be obtained from <a href="http://www.qt-project.org">
      www.qt-project.org</a>.</p>
    <br />
    <p>
      Nokia, Qt and their respective logos are trademarks of Nokia Corporation 
      in Finland and/or other countries worldwide. All other trademarks are property
      of their respective owners. <a title="Privacy Policy"
      href="http://en.gitorious.org/privacy_policy/">Privacy Policy</a></p>
</div>
</body>
</html>