QIconFactory(3qt)
π QIconFactory π
ok so bestie, welcome to QIconFactory(3qt) β the lil class that makes pixmaps for a QIconSet, and honestly? it's giving backstage crew energy. nobody claps for it but nothing works without it. π
β¨ NAME β¨
QIconFactory β literally just here to create pixmaps for a QIconSet. that's the whole job. no cap.
πΈ SYNOPSIS πΈ
#include <qiconset.h>
π Public Members
QIconFactory ()
virtual ~QIconFactory ()
virtual QPixmap * createPixmap ( const QIconSet & iconSet,
QIconSet::Size size, QIconSet::Mode mode, QIconSet::State state )
void setAutoDelete ( bool autoDelete )
bool autoDelete () const
π§ Static Public Members
QIconFactory * defaultFactory ()
void installDefaultFactory ( QIconFactory * factory )
π¦ DESCRIPTION π¦
so the QIconFactory class is used to create pixmaps for a QIconSet. that's it, that's the vibe. π
here's the slay part: by reimplementing createPixmap(), you can override QIconSet's default algorithm for computing pixmaps that the user didn't supply. you're basically taking over the aux cord. main character energy fr fr. π₯
and if you want the factory to automatically delete itself once QIconSet doesn't need it anymore, call setAutoDelete(TRUE). self-care, honestly. π
also see QIconSet and Advanced Widgets β they're the other half of this whole situation. π«Ά
π MEMBER FUNCTION DOCUMENTATION π
QIconFactory::QIconFactory ()
constructs an icon factory. congrats, it exists now. β¨
QIconFactory::~QIconFactory () [virtual]
destroys the object and frees any allocated resources. rip bestie, you did great. π
bool QIconFactory::autoDelete () const
returns TRUE if auto-deletion is enabled; otherwise returns FALSE. simple as that, no plot twist. π
see also setAutoDelete().
QPixmap * QIconFactory::createPixmap ( const QIconSet & iconSet, QIconSet::Size size, QIconSet::Mode mode, QIconSet::State state ) [virtual]
creates a pixmap for iconSet with a certain size, mode, and state. π
returns 0 if the default QIconSet algorithm should be used to create a pixmap that wasn't supplied by the user.
β οΈ heads up: it is the caller's responsibility to delete the returned pixmap. the factory is not your mom, it's not cleaning that up for you. π
the default implementation always returns 0. iconically lazy of it, honestly. π
QIconFactory * QIconFactory::defaultFactory () [static]
returns the default icon factory. the og. the blueprint. π
see also installDefaultFactory().
void QIconFactory::installDefaultFactory ( QIconFactory * factory ) [static]
replaces the default icon factory with factory. out with the old, in with the new. π
void QIconFactory::setAutoDelete ( bool autoDelete )
if autoDelete is TRUE, sets the icon factory to automatically delete itself when it is no longer referenced by any QIconSet and isn't the default factory. π§
if autoDelete is FALSE (the default), auto-deletion is disabled. so by default it just... stays. iconic behavior honestly.
see alsoautoDelete()anddefaultFactory().
π 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. (read the license bestie, it's right there, don't make it weird π)
β AUTHOR β
Generated automatically from the source code. so nobody hand-wrote this one, it's a bot's finest work, and honestly? slay. π€β¨
π 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 the group chat equivalent of "not to be that person but i found something")
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 (qiconfactory.3qt) and the Qt version (3.3.8). no vague "it's broken" messages, bestie, we need the receipts. π
and that's the whole page! this lil gem came from Trolltech AS, dated 2 February 2007, for Qt 3.3.8 β like, vintage vintage π ily, go make some pixmaps π
π¦ 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