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"><!--
|
---|
8 | fn { margin-left: 1cm; text-indent: -1cm; }
|
---|
9 | a:link { color: #004faf; text-decoration: none }
|
---|
10 | a:visited { color: #672967; text-decoration: none }
|
---|
11 | body { 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 Classes</font></a>
|
---|
23 | | <a href="mainclasses.html">
|
---|
24 | <font color="#004faf">Main 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 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 <<a href="qgrid-h.html">qgrid.h</a>></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 n, QWidget * parent = 0, const char * name = 0, WFlags f = 0 )</li>
|
---|
42 | <li class=fn><a href="#QGrid-2"><b>QGrid</b></a> ( int n, Orientation orient, QWidget * parent = 0, const char * name = 0, WFlags f = 0 )</li>
|
---|
43 | <li class=fn>void <a href="#setSpacing"><b>setSpacing</b></a> ( int space )</li>
|
---|
44 | </ul>
|
---|
45 | <hr><a name="details"></a><h2>Detailed Description</h2>
|
---|
46 |
|
---|
47 |
|
---|
48 | The 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
|
---|
52 | on its orientation.
|
---|
53 | <p> The number of rows <em>or</em> columns is defined in the constructor.
|
---|
54 | All the grid's children will be placed and sized in accordance
|
---|
55 | with 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 n, <a href="qwidget.html">QWidget</a> * parent = 0, const char * name = 0, WFlags f = 0 )
|
---|
63 | </h3>
|
---|
64 | Constructs 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
|
---|
66 | passed to the <a href="qframe.html">QFrame</a> constructor.
|
---|
67 |
|
---|
68 | <h3 class=fn><a name="QGrid-2"></a>QGrid::QGrid ( int n, <a href="qt.html#Orientation-enum">Orientation</a> orient, <a href="qwidget.html">QWidget</a> * parent = 0, const char * name = 0, WFlags f = 0 )
|
---|
69 | </h3>
|
---|
70 | Constructs a grid widget with parent <em>parent</em>, called <em>name</em>.
|
---|
71 | If <em>orient</em> is <a href="qt.html#Orientation-enum">Horizontal</a>, <em>n</em> specifies the number of
|
---|
72 | columns. If <em>orient</em> is <a href="qt.html#Orientation-enum">Vertical</a>, <em>n</em> specifies the number of
|
---|
73 | rows. 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 space )
|
---|
76 | </h3>
|
---|
77 | Sets the spacing between the child widgets to <em>space</em>.
|
---|
78 |
|
---|
79 | <!-- eof -->
|
---|
80 | <hr><p>
|
---|
81 | This file is part of the <a href="index.html">Qt toolkit</a>.
|
---|
82 | Copyright © 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 © 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>
|
---|