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

QVBoxLayout Class Reference

The QVBoxLayout class lines up widgets vertically. More...

#include <QVBoxLayout>

Part of the QtGui module.

Inherits QBoxLayout.

Public Functions

Additional Inherited Members


Detailed Description

The QVBoxLayout class lines up widgets vertically.

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

The simplest use of the class is like this:

    QVBoxLayout *layout = new QVBoxLayout(widget);
    layout->addWidget(aWidget);
    layout->addWidget(anotherWidget);
QVBox

See also QHBoxLayout, QGridLayout, and the Layout overview.


Member Function Documentation

QVBoxLayout::QVBoxLayout ()

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

QVBoxLayout::QVBoxLayout ( QWidget * parent )

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

QVBoxLayout::~QVBoxLayout ()

Destroys this box layout.

The layout's widgets aren't destroyed.


Copyright © 2005 Trolltech Trademarks
Qt 4.0.0-b2