QHBox(3qt)

πŸ“¦ version 3.3.8b, in fedora 43, fedora 44

πŸ’– QHBox β€” the Qt 3 manual page, but make it make sense πŸ’–

okay so bestie, this is the man page for QHBox from the Qt 3 docs β€” it lives in manual section 3qt, and it's literally all about horizontal geometry management for its child widgets. sit with me, we're gonna get through it together 🫢


✨ NAME ✨

QHBox β€” horizontal geometry management for its child widgets. that's the whole vibe. it lines your widgets up side by side, horizontally, and handles the geometry. periodt πŸ’…


🌸 SYNOPSIS 🌸

#include <qhbox.h>

Inherits QFrame.

Inherited by QVBox.

πŸ‘‘ Public Members

  • QHBox ( QWidget * parent = 0, const char * name = 0, WFlags f = 0 )
  • void setSpacing ( int space )
  • bool setStretchFactor ( QWidget * w, int stretch )

πŸŽ€ Protected Members

  • QHBox ( bool horizontal, QWidget * parent, const char * name, WFlags f = 0 )

πŸ¦‹ DESCRIPTION πŸ¦‹

so the QHBox widget provides horizontal geometry management for its child widgets. that's the main character job description, fr fr.

every single child widget of the horizontal box gets placed alongside each other and sized according to their sizeHint()s. like, they all just know their size and the box respects it. iconic.

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. (peep Layouts for more info on stretch factors β€” it's giving "go read the other page, bestie".)

πŸ–ΌοΈ the original page had an image right here and it got omitted. not me mourning the lost diagram 😭

See also QHBoxLayout, QVBox, QGrid, Widget Appearance and Style, Layout Management, and Organizers. a whole friend group. πŸ’œ


πŸ’… MEMBER FUNCTION DOCUMENTATION πŸ’…

QHBox::QHBox ( QWidget * parent = 0, const char * name = 0, WFlags f = 0 )

Constructs an hbox widget with parent parent, called name. The parent, name and widget flags, f, all get passed straight to the QFrame constructor. no notes, clean handoff ✨

QHBox::QHBox ( bool horizontal, QWidget * parent, const char * name, WFlags f = 0 ) [protected]

Constructs a horizontal hbox if horizontal is TRUE, otherwise constructs a vertical hbox (also known as a vbox). so it's a two-for-one situation, lowkey.

this constructor is provided for the QVBox class. 🚨 you should never need to use it directly β€” it's the backstage pass, not the front door.

The parent, name and widget flags, f, are passed to the QFrame constructor.

void QHBox::setSpacing ( int space )

Sets the spacing between the child widgets to space. personal space matters, even for widgets 🫢

Examples:

πŸ’€ bestie the original man page literally just says Examples: and then... nothing. the examples did not make it. we honor them.

bool QHBox::setStretchFactor ( QWidget * w, int stretch )

Sets the stretch factor of widget w to stretch. Returns TRUE if w is found. Otherwise returns FALSE. so it's a yes-or-no girlie and it will tell you which one. πŸ”₯

See also QBoxLayout::setStretchFactor() and Layouts.


🌈 SEE ALSO 🌈


Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the license file included in the distribution for a complete license statement. πŸ“œ


🧚 AUTHOR 🧚

Generated automatically from the source code. no human author, just ✨machines✨ doing their thing.


πŸ“ BUGS πŸ“

If you find a bug in Qt, please report it as described in http://doc.trolltech.com/bughowto.html. Good bug reports help us to help you. Thank you. (this is genuinely so sweet of them 😭)

The definitive Qt documentation is provided in HTML format; it is located at $QTDIR/doc/html and can be read using Qt 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. so yeah, we're in the unofficial-but-loved era, iykyk.

If you find errors in this manual page, please report them to qt-bugs@trolltech.com. Please include the name of the manual page (qhbox.3qt) and the Qt version (3.3.8). πŸ“¬


and that's the whole thing, bestie!! this page came from Trolltech AS, dated 2 February 2007, and it's all about Qt version 3.3.8 β€” thanks for reading, you ate that πŸŽ€πŸ’–

πŸ“¦ where this page comes from