You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tqt3/doc/man/man3/tqhbox.3qt

93 lines
3.5 KiB

'\" t
.TH TQHBox 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*-
.\" Copyright 1992-2007 Trolltech ASA. All rights reserved. See the
.\" license file included in the distribution for a complete license
.\" statement.
.\"
.ad l
.nh
.SH NAME
TQHBox \- Horizontal geometry management for its child widgets
.SH SYNOPSIS
\fC#include <tqhbox.h>\fR
.PP
Inherits TQFrame.
.PP
Inherited by TQVBox.
.PP
.SS "Public Members"
.in +1c
.ti -1c
.BI "\fBTQHBox\fR ( TQWidget * parent = 0, const char * name = 0, WFlags f = 0 )"
.br
.ti -1c
.BI "void \fBsetSpacing\fR ( int space )"
.br
.ti -1c
.BI "bool \fBsetStretchFactor\fR ( TQWidget * w, int stretch )"
.br
.in -1c
.SS "Protected Members"
.in +1c
.ti -1c
.BI "\fBTQHBox\fR ( bool horizontal, TQWidget * parent, const char * name, WFlags f = 0 )"
.br
.in -1c
.SH DESCRIPTION
The TQHBox widget provides horizontal geometry management for its child widgets.
.PP
All the horizontal box's child widgets will be placed alongside each other and sized according to their sizeHint()s.
.PP
Use setMargin() to add space around the edges, and use setSpacing() to add space between the widgets. Use setStretchFactor() if you want the widgets to be different sizes in proportion to one another. (See Layouts for more information on stretch factors.)
.PP
<center>
.ce 1
.B "[Image Omitted]"
.PP
</center>
.PP
See also TQHBoxLayout, TQVBox, TQGrid, Widget Appearance and Style, Layout Management, and Organizers.
.SH MEMBER FUNCTION DOCUMENTATION
.SH "TQHBox::TQHBox ( TQWidget * parent = 0, const char * name = 0, WFlags f = 0 )"
Constructs an hbox widget with parent \fIparent\fR, called \fIname\fR. The parent, name and widget flags, \fIf\fR, are passed to the TQFrame constructor.
.SH "TQHBox::TQHBox ( bool horizontal, TQWidget * parent, const char * name, WFlags f = 0 )\fC [protected]\fR"
Constructs a horizontal hbox if \fIhorizontal\fR is TRUE, otherwise constructs a vertical hbox (also known as a vbox).
.PP
This constructor is provided for the TQVBox class. You should never need to use it directly.
.PP
The \fIparent\fR, \fIname\fR and widget flags, \fIf\fR, are passed to the TQFrame constructor.
.SH "void TQHBox::setSpacing ( int space )"
Sets the spacing between the child widgets to \fIspace\fR.
.PP
Examples:
.)l i18n/mywidget.cpp, listboxcombo/listboxcombo.cpp, tqdir/tqdir.cpp, tabdialog/tabdialog.cpp, wizard/wizard.cpp, and xform/xform.cpp.
.SH "bool TQHBox::setStretchFactor ( TQWidget * w, int stretch )"
Sets the stretch factor of widget \fIw\fR to \fIstretch\fR. Returns TRUE if \fIw\fR is found. Otherwise returns FALSE.
.PP
See also TQBoxLayout::setStretchFactor() and Layouts.
.SH "SEE ALSO"
.BR http://doc.trolltech.com/tqhbox.html
.BR http://www.trolltech.com/faq/tech.html
.SH COPYRIGHT
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the
license file included in the distribution for a complete license
statement.
.SH AUTHOR
Generated automatically from the source code.
.SH BUGS
If you find a bug in Qt, please report it as described in
.BR http://doc.trolltech.com/bughowto.html .
Good bug reports help us to help you. Thank you.
.P
The definitive TQt documentation is provided in HTML format; it is
located at $TQTDIR/doc/html and can be read using TQt Assistant or with
a web browser. This man page is provided as a convenience for those
users who prefer man pages, although this format is not officially
supported by Trolltech.
.P
If you find errors in this manual page, please report them to
.BR qt-bugs@trolltech.com .
Please include the name of the manual page (tqhbox.3qt) and the Qt
version (3.3.8).