QTab(3qt)
๐ 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: eachQTab's identifier within aQTabBarmust 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 ๐
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
- 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