QSpacerItem(3qt)
π 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 π
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
- fedora 43: qt3-devel-docs 3.3.8b-102.fc43 Β· QPL-1.0 OR GPL-2.0-only OR GPL-3.0-only
- fedora 44: qt3-devel-docs 3.3.8b-103.fc44 Β· QPL-1.0 OR GPL-2.0-only OR GPL-3.0-only
- Copyright 1992-2007 Trolltech ASA. All rights reserved. See the
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms