1QHBoxLayout(3qt)                                              QHBoxLayout(3qt)
2
3
4

NAME

6       QHBoxLayout - Lines up widgets horizontally
7

SYNOPSIS

9       #include <qlayout.h>
10
11       Inherits QBoxLayout.
12
13   Public Members
14       QHBoxLayout ( QWidget * parent, int margin = 0, int spacing = -1, const
15           char * name = 0 )
16       QHBoxLayout ( QLayout * parentLayout, int spacing = -1, const char *
17           name = 0 )
18       QHBoxLayout ( int spacing = -1, const char * name = 0 )
19       ~QHBoxLayout ()
20

DESCRIPTION

22       The QHBoxLayout class lines up widgets horizontally.
23
24       This class is used to construct horizontal box layout objects. See
25       QBoxLayout for more details.
26
27       The simplest use of the class is like this:
28
29               QBoxLayout * l = new QHBoxLayout( widget );
30               l->setAutoAdd( TRUE );
31               new QSomeWidget( widget );
32               new QSomeOtherWidget( widget );
33               new QAnotherWidget( widget );
34
35       or like this:
36
37               QBoxLayout * l = new QHBoxLayout( widget );
38               l->addWidget( existingChildOfWidget );
39               l->addWidget( anotherChildOfWidget );
40
41       <center>
42                                   [Image Omitted]
43
44       </center>
45
46       See also QVBoxLayout, QGridLayout, the Layout overview, Widget
47       Appearance and Style, and Layout Management.
48

MEMBER FUNCTION DOCUMENTATION

QHBoxLayout::QHBoxLayout ( QWidget * parent, int margin = 0, int spacing = -1,

51       const char * name = 0 )
52       Constructs a new top-level horizontal box called name, with parent
53       parent.
54
55       The margin is the number of pixels between the edge of the widget and
56       its managed children. The spacing is the default number of pixels
57       between neighboring children. If spacing is -1 the value of margin is
58       used for spacing.
59

QHBoxLayout::QHBoxLayout ( QLayout * parentLayout, int spacing = -1, const

61       char * name = 0 )
62       Constructs a new horizontal box called name name and adds it to
63       parentLayout.
64
65       The spacing is the default number of pixels between neighboring
66       children. If spacing is -1, this QHBoxLayout will inherit its parent's
67       spacing().
68

QHBoxLayout::QHBoxLayout ( int spacing = -1, const char * name = 0 )

70       Constructs a new horizontal box called name name. You must add it to
71       another layout.
72
73       The spacing is the default number of pixels between neighboring
74       children. If spacing is -1, this QHBoxLayout will inherit its parent's
75       spacing().
76

QHBoxLayout::~QHBoxLayout ()

78       Destroys this box layout.
79
80       The layout's widgets aren't destroyed.
81
82

SEE ALSO

84       http://doc.trolltech.com/qhboxlayout.html
85       http://www.trolltech.com/faq/tech.html
86
88       Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com.  See the
89       license file included in the distribution for a complete license
90       statement.
91

AUTHOR

93       Generated automatically from the source code.
94

BUGS

96       If you find a bug in Qt, please report it as described in
97       http://doc.trolltech.com/bughowto.html.  Good bug reports help us to
98       help you. Thank you.
99
100       The definitive Qt documentation is provided in HTML format; it is
101       located at $QTDIR/doc/html and can be read using Qt Assistant or with a
102       web browser. This man page is provided as a convenience for those users
103       who prefer man pages, although this format is not officially supported
104       by Trolltech.
105
106       If you find errors in this manual page, please report them to qt-
107       bugs@trolltech.com.  Please include the name of the manual page
108       (qhboxlayout.3qt) and the Qt version (3.3.8).
109
110
111
112Trolltech AS                    2 February 2007               QHBoxLayout(3qt)
Impressum