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

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

reference documentation added

File size: 5.5 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/kernel/qlayout.cpp:2434 -->
3<html>
4<head>
5<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
6<title>QHBoxLayout 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>QHBoxLayout Class Reference</h1>
33
34<p>The QHBoxLayout class lines up widgets horizontally.
35<a href="#details">More...</a>
36<p><tt>#include &lt;<a href="qlayout-h.html">qlayout.h</a>&gt;</tt>
37<p>Inherits <a href="qboxlayout.html">QBoxLayout</a>.
38<p><a href="qhboxlayout-members.html">List of all member functions.</a>
39<h2>Public Members</h2>
40<ul>
41<li class=fn><a href="#QHBoxLayout"><b>QHBoxLayout</b></a> ( QWidget&nbsp;*&nbsp;parent, int&nbsp;margin = 0, int&nbsp;spacing = -1, const&nbsp;char&nbsp;*&nbsp;name = 0 )</li>
42<li class=fn><a href="#QHBoxLayout-2"><b>QHBoxLayout</b></a> ( QLayout&nbsp;*&nbsp;parentLayout, int&nbsp;spacing = -1, const&nbsp;char&nbsp;*&nbsp;name = 0 )</li>
43<li class=fn><a href="#QHBoxLayout-3"><b>QHBoxLayout</b></a> ( int&nbsp;spacing = -1, const&nbsp;char&nbsp;*&nbsp;name = 0 )</li>
44<li class=fn><a href="#~QHBoxLayout"><b>~QHBoxLayout</b></a> ()</li>
45</ul>
46<hr><a name="details"></a><h2>Detailed Description</h2>
47
48
49The QHBoxLayout class lines up widgets horizontally.
50<p>
51
52
53<p> This class is used to construct horizontal box layout objects. See
54<a href="qboxlayout.html">QBoxLayout</a> for more details.
55<p> The simplest use of the class is like this:
56<pre>
57 <a href="qboxlayout.html">QBoxLayout</a> * l = new QHBoxLayout( widget );
58 l-&gt;<a href="qlayout.html#setAutoAdd">setAutoAdd</a>( TRUE );
59 new QSomeWidget( widget );
60 new QSomeOtherWidget( widget );
61 new QAnotherWidget( widget );
62 </pre>
63
64<p> or like this:
65<pre>
66 <a href="qboxlayout.html">QBoxLayout</a> * l = new QHBoxLayout( widget );
67 l-&gt;<a href="qboxlayout.html#addWidget">addWidget</a>( existingChildOfWidget );
68 l-&gt;<a href="qboxlayout.html#addWidget">addWidget</a>( anotherChildOfWidget );
69 </pre>
70
71<p> <center><img src="qhboxlayout.png" alt="QHBox"></center>
72<p> <p>See also <a href="qvboxlayout.html">QVBoxLayout</a>, <a href="qgridlayout.html">QGridLayout</a>, <a href="layout.html">the Layout overview</a>, <a href="appearance.html">Widget Appearance and Style</a>, and <a href="geomanagement.html">Layout Management</a>.
73
74<hr><h2>Member Function Documentation</h2>
75<h3 class=fn><a name="QHBoxLayout"></a>QHBoxLayout::QHBoxLayout ( <a href="qwidget.html">QWidget</a>&nbsp;*&nbsp;parent, int&nbsp;margin = 0, int&nbsp;spacing = -1, const&nbsp;char&nbsp;*&nbsp;name = 0 )
76</h3>
77Constructs a new top-level horizontal box called <em>name</em>, with
78parent <em>parent</em>.
79<p> The <em>margin</em> is the number of pixels between the edge of the
80widget and its managed children. The <em>spacing</em> is the default
81number of pixels between neighboring children. If <em>spacing</em> is -1
82the value of <em>margin</em> is used for <em>spacing</em>.
83
84<h3 class=fn><a name="QHBoxLayout-2"></a>QHBoxLayout::QHBoxLayout ( <a href="qlayout.html">QLayout</a>&nbsp;*&nbsp;parentLayout, int&nbsp;spacing = -1, const&nbsp;char&nbsp;*&nbsp;name = 0 )
85</h3>
86Constructs a new horizontal box called name <em>name</em> and adds it to
87<em>parentLayout</em>.
88<p> The <em>spacing</em> is the default number of pixels between neighboring
89children. If <em>spacing</em> is -1, this QHBoxLayout will inherit its
90parent's <a href="qlayout.html#spacing">spacing</a>().
91
92<h3 class=fn><a name="QHBoxLayout-3"></a>QHBoxLayout::QHBoxLayout ( int&nbsp;spacing = -1, const&nbsp;char&nbsp;*&nbsp;name = 0 )
93</h3>
94Constructs a new horizontal box called name <em>name</em>. You must add
95it to another layout.
96<p> The <em>spacing</em> is the default number of pixels between neighboring
97children. If <em>spacing</em> is -1, this QHBoxLayout will inherit its
98parent's <a href="qlayout.html#spacing">spacing</a>().
99
100<h3 class=fn><a name="~QHBoxLayout"></a>QHBoxLayout::~QHBoxLayout ()
101</h3>
102Destroys this box layout.
103<p> The layout's widgets aren't destroyed.
104
105<!-- eof -->
106<hr><p>
107This file is part of the <a href="index.html">Qt toolkit</a>.
108Copyright &copy; 1995-2007
109<a href="http://www.trolltech.com/">Trolltech</a>. All Rights Reserved.<p><address><hr><div align=center>
110<table width=100% cellspacing=0 border=0><tr>
111<td>Copyright &copy; 2007
112<a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
113<td align=right><div align=right>Qt 3.3.8</div>
114</table></div></address></body>
115</html>
Note: See TracBrowser for help on using the repository browser.