QStyleFactory(3qt)

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

πŸ’– QStyleFactory πŸ’– (that's QStyleFactory(3qt) bestie, from the Qt fam)

okay so. sit down. hydrate. we're talking about QStyleFactory β€” the class whose whole entire job is creating QStyle objects. that's it. that's the vibe. it's the plug that makes your widgets look like something. πŸŽ€


✨ NAME ✨

QStyleFactory β€” creates QStyle objects. no cap, that's literally the whole personality.


🌈 SYNOPSIS 🌈

#include <qstylefactory.h>

🌸 Static Public Members 🌸

QStringList keys ()
QStyle * create ( const QString & key )

πŸ’… DESCRIPTION πŸ’…

The QStyleFactory class creates QStyle objects. yes bestie, the class name is the job description, we love an honest queen.

So here's the tea: the style factory creates a QStyle object for a given key, and it does that with QStyleFactory::create(key).

The styles are either built-in or dynamically loaded from a style plugin (peep QStylePlugin for that one πŸ‘€).

QStyleFactory::keys() hands you back a list of valid keys, and typically that list includes "Windows", "Motif", "CDE", "MotifPlus", "Platinum", " SGI" and "Compact". (yes the " SGI" has a leading space, i'm not touching it, it's iconic and it's staying exactly like that 🫢)

Depending on the platform, "WindowsXP", " Aqua" or "Macintosh" may be available. so like… what you get is lowkey platform-dependent, just a heads up. (and yep, " Aqua" also has a lil leading space. we don't ask questions. we respect the lore.)


πŸ‘‘ MEMBER FUNCTION DOCUMENTATION πŸ‘‘

🌟 QStyle * QStyleFactory::create ( const QString & key ) [static]

Creates a QStyle object that matches key case-insensitively. so "windows", "WINDOWS", "WiNdOwS" β€” all fine, she's not picky. πŸ’…

This is either a built-in style, or a style from a style plugin. either way you're getting a style out of it.

See also keys().

Example: themes/wood.cpp.


πŸ¦‹ QStringList QStyleFactory::keys () [static]

Returns the list of keys this factory can create styles for. that's it. that's the function. go off.

See also create().

Example: themes/themes.cpp.


πŸ”₯ 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. (no human author to stan, unfortunately. the robots did this one. πŸ€–)


πŸ’€ 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, good bug reports are the love language of maintainers, do not send "it's broken fix it" and nothing else, i am begging 😭)

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, cute, but not the canon version, iykyk)

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


ok that's the whole page bestie, every option, every key, every weird lil leading space, all of it, preserved with love and zero cap πŸ’–

and that's a wrap! this lil masterpiece dropped from Trolltech AS on 2 February 2007, and it's living its best life as QStyleFactory(3qt). slay, bye! πŸ‘‘βœ¨πŸŒΈ

πŸ“¦ where this page comes from