QIconFactory(3qt)

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

πŸ’– 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 also autoDelete() and defaultFactory().

🌟 SEE ALSO 🌟


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