QSpacerItem(3qt)

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

πŸ’– QSpacerItem β€” the qspaceritem manual page, bestie edition ✨

okay so. welcome to QSpacerItem(3qt), the glow-up guide to the class that is literally just... empty space. and yet? iconic. she does nothing and she does it flawlessly. main character energy for a void πŸ’…


🌸 NAME 🌸

QSpacerItem β€” Blank space in a layout 🫢


✨ SYNOPSIS ✨

#include <qlayout.h>

Inherits QLayoutItem. yes bestie, she's got a whole parent. nepotism but make it OOP πŸŽ€

πŸ¦‹ Public Members πŸ¦‹

QSpacerItem ( int w, int h, QSizePolicy::SizeType hData =
    QSizePolicy::Minimum, QSizePolicy::SizeType vData =
    QSizePolicy::Minimum )
void changeSize ( int w, int h, QSizePolicy::SizeType hData =
    QSizePolicy::Minimum, QSizePolicy::SizeType vData =
    QSizePolicy::Minimum )
virtual QSize sizeHint () const
virtual QSize minimumSize () const
virtual QSize maximumSize () const
virtual QSizePolicy::ExpandData expanding () const
virtual bool isEmpty () const
virtual void setGeometry ( const QRect & r )

look at that roster. every single one of them is here. no cap 🌈


πŸ’œ DESCRIPTION πŸ’œ

The QSpacerItem class provides blank space in a layout. that's it. that's the whole job. she's the pause between the beats, the silence in the group chat when someone says something unhinged, the padding that makes everything else look expensive ✨

This class is used by custom layouts. so if you're out here hand-rolling your own layout situation, this is your girl.

See also QLayout, QLayout::spacerItem(), Widget Appearance and Style, and Layout Management. yes those are all real, go look them up, iykyk πŸ“š


🧚 MEMBER FUNCTION DOCUMENTATION 🧚

QSpacerItem::QSpacerItem ( int w, int h, QSizePolicy::SizeType hData = QSizePolicy::Minimum, QSizePolicy::SizeType vData = QSizePolicy::Minimum )

Constructs a spacer item with preferred width w, preferred height h, horizontal size policy hData and vertical size policy vData. you're literally giving birth to a rectangle of nothing. slay πŸŽ€

The default values provide a gap that is able to stretch if nothing else wants the space. so she's flexible. she's accommodating. she's lowkey the best friend of every widget in the room πŸ’–

void QSpacerItem::changeSize ( int w, int h, QSizePolicy::SizeType hData = QSizePolicy::Minimum, QSizePolicy::SizeType vData = QSizePolicy::Minimum )

Changes this spacer item to have preferred width w, preferred height h, horizontal size policy hData and vertical size policy vData. glow-up arc. she's not the same void she was yesterday πŸ’…

The default values provide a gap that is able to stretch if nothing else wants the space. same deal as before, fr fr.

QSizePolicy::ExpandData QSpacerItem::expanding () const [virtual]

Returns the direction in which this spacer item will expand. which way is she gonna grow? mysterious. dramatic. we love a reveal πŸ¦‹

See also QSizePolicy::ExpandData.

Reimplemented from QLayoutItem. (she's out here doing her own version of the family business.)

bool QSpacerItem::isEmpty () const [virtual]

Returns TRUE because a spacer item never contains widgets. she's empty on purpose. that's the whole point. not me being a void and thriving πŸ’€

Reimplemented from QLayoutItem.

QSize QSpacerItem::maximumSize () const [virtual]

Returns the maximum size of this spacer item. how big can she go? big. huge. astronomical, honestly 🌈

Reimplemented from QLayoutItem.

QSize QSpacerItem::minimumSize () const [virtual]

Returns the minimum size of this spacer item. how small can she go? tiny. babygirl-sized πŸ“

Reimplemented from QLayoutItem.

void QSpacerItem::setGeometry ( const QRect & r ) [virtual]

Stores the spacer item's rect r so that it can be returned by geometry(). she's putting it in her notes app so she can pull it up later πŸŽ€

Reimplemented from QLayoutItem.

QSize QSpacerItem::sizeHint () const [virtual]

Returns the preferred size of this spacer item. her ideal situation. her dream size. manifesting ✨

Reimplemented from QLayoutItem.


πŸ”₯ SEE ALSO πŸ”₯

go read them, they're giving required reading πŸ’œ


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

(the lawyers said include this and honestly? respect. read your license file, bestie.)


🌸 AUTHOR 🌸

Generated automatically from the source code. no human hand wrote this. the machine did it. and the machine ate, ngl πŸ’…


πŸ’€ 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.

fr fr, a good bug report is a gift. be specific. be kind. help them help you 🫢

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 like. yes the man page is real and useful and we love her, but she's the side quest, not the main quest. the HTML is canon 🌈

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

not me begging you to include the page name AND the version. they need BOTH. do not make them guess. include both or the bug report is giving incomplete 😭

aaaand that's the whole page, start to finish. every flag, every default, every TRUE, every path, every link β€” all still here, just with better vibes ✨ this was Trolltech AS, dated 2 February 2007, and you've been reading QSpacerItem(3qt) β€” stay empty, stay iconic, periodt πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from