QTab(3qt)

๐Ÿ“ฆ version 3.3.8b, in fedora 43, fedora 44

๐Ÿ’– QTab โ€” the structures in a QTabBar ๐Ÿ’–

okay so bestie, this is qtab.3qt, part of the Qt 3 manual pages, and it's literally the little data blob that makes a QTabBar tab tick. sit with me, it's short and it's cute ๐ŸŽ€


โœจ NAME โœจ

QTab โ€” the structures in a QTabBar. that's it, that's the whole vibe ๐Ÿ’…


๐ŸŒธ SYNOPSIS ๐ŸŒธ

#include <qtabbar.h>

Inherits Qt. ๐Ÿฆ‹

๐Ÿ‘‘ Public Members

QTab ()
virtual ~QTab ()
QTab ( const QString & text )
QTab ( const QIconSet & icon, const QString & text = QString::null )
void setText ( const QString & text )
QString text () const
void setIconSet ( const QIconSet & icon )
QIconSet * iconSet () const
void setRect ( const QRect & rect )
QRect rect () const
void setEnabled ( bool enable )
bool isEnabled () const
void setIdentifier ( int i )
int identifier () const

๐Ÿ’œ DESCRIPTION ๐Ÿ’œ

The QTab class provides the structures in a QTabBar. like, the actual per-tab data, not the bar itself.

This class is used for custom QTabBar tab headings โ€” so when you wanna roll your own tab labels instead of letting the bar do its thing, this is your girl ๐Ÿซถ

also see: QTabBar and Advanced Widgets โœจ

๐Ÿงš MEMBER FUNCTION DOCUMENTATION ๐Ÿงš

QTab::QTab ()

Constructs an empty tab. Every single field is set to empty โ€” a blank slate, a fresh start, main character energy โœจ

QTab::QTab ( const QString & text )

Constructs a tab with the text text. ๐Ÿ“

QTab::QTab ( const QIconSet & icon, const QString & text = QString::null )

Constructs a tab with an icon and the text, text. icon AND label, we love a multitasker ๐Ÿ’…

QTab::~QTab () [virtual]

Destroys the tab and frees up all allocated resources. no leaks, no mess, we're clean here ๐Ÿงผ (it's virtual, so bestie, it plays nice with inheritance)

QIconSet * QTab::iconSet () const

Return the QIconSet of the QTab. ๐ŸŽ€

int QTab::identifier () const

Return the QTab's identifier. ๐Ÿ”ข

bool QTab::isEnabled () const

Returns TRUE if the QTab is enabled; otherwise returns FALSE. yes/no, that's the whole tea

QRect QTab::rect () const

Return the QRect for the QTab. ๐Ÿ“

void QTab::setEnabled ( bool enable )

If enable is TRUE enable the QTab, otherwise disable it. toggle her on or off, your call ๐Ÿ’›

void QTab::setIconSet ( const QIconSet & icon )

Sets the tab's iconset to icon. ๐Ÿ–ผ๏ธ

void QTab::setIdentifier ( int i )

Set the identifier for the QTab to i.

IMPORTANT bestie: each QTab's identifier within a QTabBar must be unique. no duplicates, periodt. ๐Ÿ‘‘๐Ÿ”’

void QTab::setRect ( const QRect & rect )

Set the QTab QRect to rect. ๐Ÿ“

void QTab::setText ( const QString & text )

Sets the text of the tab to text. โœ๏ธ

QString QTab::text () const

Returns the text of the QTab label. ๐Ÿท๏ธ


๐ŸŒˆ 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. (not a human, just vibes from the compiler, iykyk ๐Ÿ™ˆ)


๐Ÿ› 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, they mean it)

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. ๐Ÿ˜ญ

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


okay that's the whole page, ily, go build something cute ๐Ÿ’–โœจ๐ŸŒธ๐ŸŽ€๐Ÿฆ‹๐Ÿ’…

Trolltech AS ยท 2 February 2007 ยท QTab(3qt) ยท Qt 3.3.8 โ€” and that's the sign-off bestie, mwah ๐Ÿ’‹๐Ÿ‘‘

๐Ÿ“ฆ where this page comes from