Home | All Classes | Main Classes | Annotated | Grouped Classes | Functions |
The TQHBoxLayout class lines up widgets horizontally. More...
#include <tqlayout.h>
Inherits TQBoxLayout.
This class is used to construct horizontal box layout objects. See TQBoxLayout for more details.
The simplest use of the class is like this:
TQBoxLayout * l = new TQHBoxLayout( widget ); l->setAutoAdd( TRUE ); new TQSomeWidget( widget ); new TQSomeOtherWidget( widget ); new TQAnotherWidget( widget );
or like this:
TQBoxLayout * l = new TQHBoxLayout( widget ); l->addWidget( existingChildOfWidget ); l->addWidget( anotherChildOfWidget );
See also TQVBoxLayout, TQGridLayout, the Layout overview, Widget Appearance and Style, and Layout Management.
The margin is the number of pixels between the edge of the widget and its managed children. The spacing is the default number of pixels between neighboring children. If spacing is -1 the value of margin is used for spacing.
The spacing is the default number of pixels between neighboring children. If spacing is -1, this TQHBoxLayout will inherit its parent's spacing().
The spacing is the default number of pixels between neighboring children. If spacing is -1, this TQHBoxLayout will inherit its parent's spacing().
The layout's widgets aren't destroyed.
This file is part of the TQt toolkit. Copyright © 1995-2007 Trolltech. All Rights Reserved.
Copyright © 2007 Trolltech | Trademarks | TQt 3.3.8
|