Home · All Classes · Main Classes · Annotated · Grouped Classes · Functions

QHBoxLayout Class Reference

The QHBoxLayout class lines up widgets horizontally. More...

#include <QHBoxLayout>

Part of the QtGui module.

Inherits QBoxLayout.

Public Functions

Additional Inherited Members


Detailed Description

The QHBoxLayout class lines up widgets horizontally.

This class is used to construct horizontal box layout objects. See QBoxLayout for more details.

The simplest use of the class is like this:

    QHBoxLayout *layout = new QHBoxLayout(widget);
    layout->addWidget(existingChildOfWidget);
    layout->addWidget(anotherChildOfWidget);
QHBox

the Layout overview

See also QVBoxLayout and QGridLayout.


Member Function Documentation

QHBoxLayout::QHBoxLayout ()

Constructs a new horizontal box. You must add it to another layout.

QHBoxLayout::QHBoxLayout ( QWidget * parent )

Constructs a new top-level horizontal box with parent parent.

QHBoxLayout::~QHBoxLayout ()

Destroys this box layout.

The layout's widgets aren't destroyed.


Copyright © 2005 Trolltech Trademarks
Qt 4.0.0-b2