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

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

reference documentation added

File size: 5.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/qhbox.cpp:41 -->
3<html>
4<head>
5<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
6<title>QHBox 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>QHBox Class Reference</h1>
33
34<p>The QHBox widget provides horizontal geometry management
35for its child widgets.
36<a href="#details">More...</a>
37<p><tt>#include &lt;<a href="qhbox-h.html">qhbox.h</a>&gt;</tt>
38<p>Inherits <a href="qframe.html">QFrame</a>.
39<p>Inherited by <a href="qvbox.html">QVBox</a>.
40<p><a href="qhbox-members.html">List of all member functions.</a>
41<h2>Public Members</h2>
42<ul>
43<li class=fn><a href="#QHBox"><b>QHBox</b></a> ( QWidget&nbsp;*&nbsp;parent = 0, const&nbsp;char&nbsp;*&nbsp;name = 0, WFlags&nbsp;f = 0 )</li>
44<li class=fn>void <a href="#setSpacing"><b>setSpacing</b></a> ( int&nbsp;space )</li>
45<li class=fn>bool <a href="#setStretchFactor"><b>setStretchFactor</b></a> ( QWidget&nbsp;*&nbsp;w, int&nbsp;stretch )</li>
46</ul>
47<h2>Protected Members</h2>
48<ul>
49<li class=fn><a href="#QHBox-2"><b>QHBox</b></a> ( bool&nbsp;horizontal, QWidget&nbsp;*&nbsp;parent, const&nbsp;char&nbsp;*&nbsp;name, WFlags&nbsp;f = 0 )</li>
50</ul>
51<hr><a name="details"></a><h2>Detailed Description</h2>
52
53
54The QHBox widget provides horizontal geometry management
55for its child widgets.
56<p>
57
58
59<p> All the horizontal box's child widgets will be placed alongside
60each other and sized according to their <a href="qwidget.html#sizeHint">sizeHint</a>()s.
61<p> Use <a href="qframe.html#setMargin">setMargin</a>() to add space around the edges, and use
62<a href="#setSpacing">setSpacing</a>() to add space between the widgets. Use
63<a href="#setStretchFactor">setStretchFactor</a>() if you want the widgets to be different sizes
64in proportion to one another. (See <a href="layout.html">Layouts</a> for more information on stretch factors.)
65<p> <center><img src="qhbox-m.png" alt="QHBox"></center>
66<p> <p>See also <a href="qhboxlayout.html">QHBoxLayout</a>, <a href="qvbox.html">QVBox</a>, <a href="qgrid.html">QGrid</a>, <a href="appearance.html">Widget Appearance and Style</a>, <a href="geomanagement.html">Layout Management</a>, and <a href="organizers.html">Organizers</a>.
67
68<hr><h2>Member Function Documentation</h2>
69<h3 class=fn><a name="QHBox"></a>QHBox::QHBox ( <a href="qwidget.html">QWidget</a>&nbsp;*&nbsp;parent = 0, const&nbsp;char&nbsp;*&nbsp;name = 0, WFlags&nbsp;f = 0 )
70</h3>
71Constructs an hbox widget with parent <em>parent</em>, called <em>name</em>.
72The parent, name and widget flags, <em>f</em>, are passed to the <a href="qframe.html">QFrame</a>
73constructor.
74
75<h3 class=fn><a name="QHBox-2"></a>QHBox::QHBox ( bool&nbsp;horizontal, <a href="qwidget.html">QWidget</a>&nbsp;*&nbsp;parent, const&nbsp;char&nbsp;*&nbsp;name, WFlags&nbsp;f = 0 )<tt> [protected]</tt>
76</h3>
77Constructs a horizontal hbox if <em>horizontal</em> is TRUE, otherwise
78constructs a vertical hbox (also known as a vbox).
79<p> This constructor is provided for the <a href="qvbox.html">QVBox</a> class. You should never
80need to use it directly.
81<p> The <em>parent</em>, <em>name</em> and widget flags, <em>f</em>, are passed to the
82<a href="qframe.html">QFrame</a> constructor.
83
84<h3 class=fn>void <a name="setSpacing"></a>QHBox::setSpacing ( int&nbsp;space )
85</h3>
86Sets the spacing between the child widgets to <em>space</em>.
87
88<p>Examples: <a href="i18n-example.html#x1924">i18n/mywidget.cpp</a>, <a href="listboxcombo-example.html#x1402">listboxcombo/listboxcombo.cpp</a>, <a href="qdir-example.html#x1826">qdir/qdir.cpp</a>, <a href="tabdialog-example.html#x54">tabdialog/tabdialog.cpp</a>, <a href="wizard-example.html#x2">wizard/wizard.cpp</a>, and <a href="xform-example.html#x1228">xform/xform.cpp</a>.
89<h3 class=fn>bool <a name="setStretchFactor"></a>QHBox::setStretchFactor ( <a href="qwidget.html">QWidget</a>&nbsp;*&nbsp;w, int&nbsp;stretch )
90</h3>
91Sets the <a href="layout.html#stretch-factor">stretch factor</a> of widget <em>w</em> to <em>stretch</em>. Returns TRUE if
92<em>w</em> is found. Otherwise returns FALSE.
93<p> <p>See also <a href="qboxlayout.html#setStretchFactor">QBoxLayout::setStretchFactor</a>() and <a href="layout.html">Layouts</a>.
94
95<!-- eof -->
96<hr><p>
97This file is part of the <a href="index.html">Qt toolkit</a>.
98Copyright &copy; 1995-2007
99<a href="http://www.trolltech.com/">Trolltech</a>. All Rights Reserved.<p><address><hr><div align=center>
100<table width=100% cellspacing=0 border=0><tr>
101<td>Copyright &copy; 2007
102<a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
103<td align=right><div align=right>Qt 3.3.8</div>
104</table></div></address></body>
105</html>
Note: See TracBrowser for help on using the repository browser.