1
<?xml version="1.0" encoding="iso-8859-1"?>
3
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
4
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
<!-- /tmp/qt-4.0.0-espenr-1119621036935/qt-x11-opensource-desktop-4.0.0/src/gui/kernel/qboxlayout.cpp -->
7
<title>Qt 4.0: Qt 3 Support Members for QBoxLayout</title>
8
<style>h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm; }
9
a:link { color: #004faf; text-decoration: none }
10
a:visited { color: #672967; text-decoration: none }
11
td.postheader { font-family: sans-serif }
12
tr.address { font-family: sans-serif }
13
body { background: #ffffff; color: black; }</style>
16
<table border="0" cellpadding="0" cellspacing="0" width="100%">
18
<td align="left" valign="top" width="32"><img src="images/qt-logo.png" align="left" width="32" height="32" border="0" /></td>
19
<td width="1"> </td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a> · <a href="classes.html"><font color="#004faf">All Classes</font></a> · <a href="mainclasses.html"><font color="#004faf">Main Classes</font></a> · <a href="annotated.html"><font color="#004faf">Annotated</font></a> · <a href="groups.html"><font color="#004faf">Grouped Classes</font></a> · <a href="functions.html"><font color="#004faf">Functions</font></a></td>
20
<td align="right" valign="top" width="230"><img src="images/trolltech-logo.png" align="right" width="203" height="32" border="0" /></td></tr></table><h1 align="center">Qt 3 Support Members for QBoxLayout</h1>
21
<p><b>The following class members are part of the Qt 3 support layer.</b> They are provided to help you port old code to Qt 4. We advise against using them in new code.</p>
22
<p><ul><li><a href="qboxlayout.html">QBoxLayout class reference</a></li></ul></p>
23
<h3>Public Functions</h3>
25
<li><div class="fn"/><b><a href="qboxlayout-qt3.html#QBoxLayout-2">QBoxLayout</a></b> ( QWidget * <i>parent</i>, Direction <i>dir</i>, int <i>margin</i> = 0, int <i>spacing</i> = -1, const char * <i>name</i> = 0 )</li>
26
<li><div class="fn"/><b><a href="qboxlayout-qt3.html#QBoxLayout-3">QBoxLayout</a></b> ( QLayout * <i>parentLayout</i>, Direction <i>dir</i>, int <i>spacing</i> = -1, const char * <i>name</i> = 0 )</li>
27
<li><div class="fn"/><b><a href="qboxlayout-qt3.html#QBoxLayout-4">QBoxLayout</a></b> ( Direction <i>dir</i>, int <i>spacing</i>, const char * <i>name</i> = 0 )</li>
28
<li><div class="fn"/>int <b><a href="qboxlayout-qt3.html#findWidget">findWidget</a></b> ( QWidget * <i>widget</i> )</li>
31
<li><div class="fn"/>11 public functions inherited from <a href="qlayout.html#public-functions">QLayout</a></li>
32
<li><div class="fn"/>8 public functions inherited from <a href="qobject.html#public-functions">QObject</a></li>
35
<h2>Member Function Documentation</h2>
36
<h3 class="fn"><a name="QBoxLayout-2"></a>QBoxLayout::QBoxLayout ( <a href="qwidget.html">QWidget</a> * <i>parent</i>, <a href="qboxlayout.html#Direction-enum">Direction</a> <i>dir</i>, int <i>margin</i> = 0, int <i>spacing</i> = -1, const char * <i>name</i> = 0 )</h3>
37
<p>Constructs a new <a href="qboxlayout.html">QBoxLayout</a> with direction <i>dir</i> and main widget <i>parent</i>. <i>parent</i> may not be 0.</p>
38
<p>The <i>margin</i> is the number of pixels between the edge of the widget and its managed children. The <i>spacing</i> is the default number of pixels between neighboring children. If <i>spacing</i> is -1 the value of <i>margin</i> is used for <i>spacing</i>.</p>
39
<p><i>name</i> is the internal object name.</p>
40
<p>See also <a href="qboxlayout.html#direction">direction</a>().</p>
41
<h3 class="fn"><a name="QBoxLayout-3"></a>QBoxLayout::QBoxLayout ( <a href="qlayout.html">QLayout</a> * <i>parentLayout</i>, <a href="qboxlayout.html#Direction-enum">Direction</a> <i>dir</i>, int <i>spacing</i> = -1, const char * <i>name</i> = 0 )</h3>
42
<p>Constructs a new <a href="qboxlayout.html">QBoxLayout</a> called <i>name</i>, with direction <i>dir</i>, and inserts it into <i>parentLayout</i>.</p>
43
<p>The <i>spacing</i> is the default number of pixels between neighboring children. If <i>spacing</i> is -1, the layout will inherit its parent's <a href="qlayout.html#spacing-prop">spacing</a>().</p>
44
<h3 class="fn"><a name="QBoxLayout-4"></a>QBoxLayout::QBoxLayout ( <a href="qboxlayout.html#Direction-enum">Direction</a> <i>dir</i>, int <i>spacing</i>, const char * <i>name</i> = 0 )</h3>
45
<p>Constructs a new <a href="qboxlayout.html">QBoxLayout</a> called <i>name</i>, with direction <i>dir</i>.</p>
46
<p>If <i>spacing</i> is -1, the layout will inherit its parent's <a href="qlayout.html#spacing-prop">spacing</a>(); otherwise <i>spacing</i> is used.</p>
47
<p>You must insert this box into another layout.</p>
48
<h3 class="fn"><a name="findWidget"></a>int QBoxLayout::findWidget ( <a href="qwidget.html">QWidget</a> * <i>widget</i> )</h3>
49
<p>Use indexOf(<i>widget</i>) instead.</p>
50
<p /><address><hr /><div align="center">
51
<table width="100%" cellspacing="0" border="0"><tr class="address">
52
<td width="30%">Copyright © 2005 <a href="trolltech.html">Trolltech</a></td>
53
<td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td>
54
<td width="30%" align="right"><div align="right">Qt 4.0.0</div></td>
55
</tr></table></div></address></body>