source: trunk/doc/html/qgrid.html@ 190

Last change on this file since 190 was 190, checked in by rudi, 14 years ago

reference documentation added

File size: 4.6 KB
Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2<!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/src/widgets/qgrid.cpp:40 -->
3<html>
4<head>
5<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
6<title>QGrid Class</title>
7<style type="text/css"><!--
8fn { margin-left: 1cm; text-indent: -1cm; }
9a:link { color: #004faf; text-decoration: none }
10a:visited { color: #672967; text-decoration: none }
11body { background: #ffffff; color: black; }
12--></style>
13</head>
14<body>
15
16<table border="0" cellpadding="0" cellspacing="0" width="100%">
17<tr bgcolor="#E5E5E5">
18<td valign=center>
19 <a href="index.html">
20<font color="#004faf">Home</font></a>
21 | <a href="classes.html">
22<font color="#004faf">All&nbsp;Classes</font></a>
23 | <a href="mainclasses.html">
24<font color="#004faf">Main&nbsp;Classes</font></a>
25 | <a href="annotated.html">
26<font color="#004faf">Annotated</font></a>
27 | <a href="groups.html">
28<font color="#004faf">Grouped&nbsp;Classes</font></a>
29 | <a href="functions.html">
30<font color="#004faf">Functions</font></a>
31</td>
32<td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>QGrid Class Reference</h1>
33
34<p>The QGrid widget provides simple geometry management of its children.
35<a href="#details">More...</a>
36<p><tt>#include &lt;<a href="qgrid-h.html">qgrid.h</a>&gt;</tt>
37<p>Inherits <a href="qframe.html">QFrame</a>.
38<p><a href="qgrid-members.html">List of all member functions.</a>
39<h2>Public Members</h2>
40<ul>
41<li class=fn><a href="#QGrid"><b>QGrid</b></a> ( int&nbsp;n, QWidget&nbsp;*&nbsp;parent = 0, const&nbsp;char&nbsp;*&nbsp;name = 0, WFlags&nbsp;f = 0 )</li>
42<li class=fn><a href="#QGrid-2"><b>QGrid</b></a> ( int&nbsp;n, Orientation&nbsp;orient, QWidget&nbsp;*&nbsp;parent = 0, const&nbsp;char&nbsp;*&nbsp;name = 0, WFlags&nbsp;f = 0 )</li>
43<li class=fn>void <a href="#setSpacing"><b>setSpacing</b></a> ( int&nbsp;space )</li>
44</ul>
45<hr><a name="details"></a><h2>Detailed Description</h2>
46
47
48The QGrid widget provides simple geometry management of its children.
49<p>
50
51<p> The grid places its widgets either in columns or in rows depending
52on its orientation.
53<p> The number of rows <em>or</em> columns is defined in the constructor.
54All the grid's children will be placed and sized in accordance
55with their <a href="qwidget.html#sizeHint">sizeHint</a>() and <a href="qwidget.html#sizePolicy">sizePolicy</a>().
56<p> Use <a href="qframe.html#setMargin">setMargin</a>() to add space around the grid itself, and
57<a href="#setSpacing">setSpacing</a>() to add space between the widgets.
58<p> <center><img src="qgrid-m.png" alt="QGrid"></center>
59<p> <p>See also <a href="qvbox.html">QVBox</a>, <a href="qhbox.html">QHBox</a>, <a href="qgridlayout.html">QGridLayout</a>, <a href="appearance.html">Widget Appearance and Style</a>, and <a href="geomanagement.html">Layout Management</a>.
60
61<hr><h2>Member Function Documentation</h2>
62<h3 class=fn><a name="QGrid"></a>QGrid::QGrid ( int&nbsp;n, <a href="qwidget.html">QWidget</a>&nbsp;*&nbsp;parent = 0, const&nbsp;char&nbsp;*&nbsp;name = 0, WFlags&nbsp;f = 0 )
63</h3>
64Constructs a grid widget with parent <em>parent</em>, called <em>name</em>.
65<em>n</em> specifies the number of columns. The widget flags <em>f</em> are
66passed to the <a href="qframe.html">QFrame</a> constructor.
67
68<h3 class=fn><a name="QGrid-2"></a>QGrid::QGrid ( int&nbsp;n, <a href="qt.html#Orientation-enum">Orientation</a>&nbsp;orient, <a href="qwidget.html">QWidget</a>&nbsp;*&nbsp;parent = 0, const&nbsp;char&nbsp;*&nbsp;name = 0, WFlags&nbsp;f = 0 )
69</h3>
70Constructs a grid widget with parent <em>parent</em>, called <em>name</em>.
71If <em>orient</em> is <a href="qt.html#Orientation-enum">Horizontal</a>, <em>n</em> specifies the number of
72columns. If <em>orient</em> is <a href="qt.html#Orientation-enum">Vertical</a>, <em>n</em> specifies the number of
73rows. The widget flags <em>f</em> are passed to the <a href="qframe.html">QFrame</a> constructor.
74
75<h3 class=fn>void <a name="setSpacing"></a>QGrid::setSpacing ( int&nbsp;space )
76</h3>
77Sets the spacing between the child widgets to <em>space</em>.
78
79<!-- eof -->
80<hr><p>
81This file is part of the <a href="index.html">Qt toolkit</a>.
82Copyright &copy; 1995-2007
83<a href="http://www.trolltech.com/">Trolltech</a>. All Rights Reserved.<p><address><hr><div align=center>
84<table width=100% cellspacing=0 border=0><tr>
85<td>Copyright &copy; 2007
86<a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
87<td align=right><div align=right>Qt 3.3.8</div>
88</table></div></address></body>
89</html>
Note: See TracBrowser for help on using the repository browser.