QStyleFactory(3qt)
π 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 π
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
- 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