QHBoxLayout(3qt)

NAME
QHBoxLayout - Lines up widgets horizontally

#include <qlayout.h>

Inherits QBoxLayout.

  Public Members
QHBoxLayout ( QWidget * parent, int border=0, int space = -1, const char * name=0 )
QHBoxLayout ( QLayout * parentLayout, int space = -1, const char * name=0 )
QHBoxLayout ( int space = -1, const char * name=0 )
~QHBoxLayout ()

DESCRIPTION
The QHBoxLayout class lines up widgets horizontally.

This class provides an easier way to construct horizontal box layout objects. See QBoxLayout for more details.

The simplest ways to use this class are:

     QBoxLayout * l = new QHBoxLayout( widget );
     l->setAutoAdd( TRUE );
     new QSomeWidget( widget );
     new QSomeOtherWidget( widget );
     new QAnotherWidget( widget );

or

     QBoxLayout * l = new QHBoxLayout( widget );
     l->addWidget( existingChildOfWidget );
     l->addWidget( anotherChildOfWidget );

See also QVBoxLayout, QGridLayout and Layout overview documentation

Examples: layout/layout.cpp popup/popup.cpp

MEMBER FUNCTION DOCUMENTATION

QHBoxLayout::QHBoxLayout ( QLayout * parentLayout, int space = -1, const char * name=0 )
Constructs a new horizontal box and adds it to parentLayout.

QHBoxLayout::QHBoxLayout ( QWidget * parent, int border=0, int space = -1, const char * name=0 )
Constructs a new top-level horizontal box.

QHBoxLayout::QHBoxLayout ( int space = -1, const char * name=0 )
Constructs a new horizontal box. You have to add it to another layout.

QHBoxLayout::~QHBoxLayout ()
Destructs this box.

SEE ALSO
http://doc.trolltech.com/qhboxlayout.html http://www.trolltech.com/faq/tech.html

COPYRIGHT
Copyright 1992-2001 Trolltech AS, http://www.trolltech.com. See the license file included in the distribution for a complete license statement.

AUTHOR
Generated automatically from the source code.

BUGS
If you find a bug in Qt, please report it as described in http://doc.trolltech.com/bughowto.html. Good bug reports make our job much simpler. Thank you.

In case of content or formattting problems with this manual page, please report them to qt-bugs@trolltech.com. Please include the name of the manual page (qhboxlayout.3qt) and the Qt version (2.3.1).