1
<?xml version="1.0" encoding="iso-8859-1"?>
3
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
4
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
<!-- /tmp/qt-4.0.0-espenr-1119621036935/qt-x11-opensource-desktop-4.0.0/src/gui/styles/qstylefactory.cpp -->
7
<title>Qt 4.0: QStyleFactory Class Reference</title>
8
<style>h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm; }
9
a:link { color: #004faf; text-decoration: none }
10
a:visited { color: #672967; text-decoration: none }
11
td.postheader { font-family: sans-serif }
12
tr.address { font-family: sans-serif }
13
body { background: #ffffff; color: black; }</style>
16
<table border="0" cellpadding="0" cellspacing="0" width="100%">
18
<td align="left" valign="top" width="32"><img src="images/qt-logo.png" align="left" width="32" height="32" border="0" /></td>
19
<td width="1"> </td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a> · <a href="classes.html"><font color="#004faf">All Classes</font></a> · <a href="mainclasses.html"><font color="#004faf">Main Classes</font></a> · <a href="annotated.html"><font color="#004faf">Annotated</font></a> · <a href="groups.html"><font color="#004faf">Grouped Classes</font></a> · <a href="functions.html"><font color="#004faf">Functions</font></a></td>
20
<td align="right" valign="top" width="230"><img src="images/trolltech-logo.png" align="right" width="203" height="32" border="0" /></td></tr></table><h1 align="center">QStyleFactory Class Reference</h1>
21
<p>The QStyleFactory class creates <a href="qstyle.html">QStyle</a> objects. <a href="#details">More...</a></p>
22
<pre>#include <QStyleFactory></pre><p>Part of the <a href="qtgui.html">QtGui</a> module.</p>
24
<li><a href="qstylefactory-members.html">List of all members, including inherited members</a></li>
26
<a name="static-public-members"></a>
27
<h3>Static Public Members</h3>
29
<li><div class="fn"/>QStyle * <b><a href="qstylefactory.html#create">create</a></b> ( const QString & <i>key</i> )</li>
30
<li><div class="fn"/>QStringList <b><a href="qstylefactory.html#keys">keys</a></b> ()</li>
32
<a name="details"></a>
34
<h2>Detailed Description</h2>
35
<p>The QStyleFactory class creates <a href="qstyle.html">QStyle</a> objects.</p>
36
<p>The style factory creates a <a href="qstyle.html">QStyle</a> object for a given key with QStyleFactory::create(key).</p>
37
<p>The styles are either built-in or dynamically loaded from a style plugin (see <a href="qstyleplugin.html">QStylePlugin</a>).</p>
38
<p><a href="qstylefactory.html#keys">QStyleFactory::keys</a>() returns a list of valid keys, typically including "windows", "motif", "cde", and "plastique". Depending on the platform, "windowsxp" and "macintosh" may be available.</p>
39
<p>See also <a href="qstyle.html">QStyle</a>.</p>
41
<h2>Member Function Documentation</h2>
42
<h3 class="fn"><a name="create"></a><a href="qstyle.html">QStyle</a> * QStyleFactory::create ( const <a href="qstring.html">QString</a> & <i>key</i> ) <tt> [static]</tt></h3>
43
<p>Creates a <a href="qstyle.html">QStyle</a> object that matches <i>key</i>. This is either a built-in style, or a style from a style plugin.</p>
44
<p>See also <a href="qstylefactory.html#keys">keys</a>().</p>
45
<h3 class="fn"><a name="keys"></a><a href="qstringlist.html">QStringList</a> QStyleFactory::keys () <tt> [static]</tt></h3>
46
<p>Returns the list of keys this factory can create styles for.</p>
47
<p>See also <a href="qstylefactory.html#create">create</a>().</p>
48
<p /><address><hr /><div align="center">
49
<table width="100%" cellspacing="0" border="0"><tr class="address">
50
<td width="30%">Copyright © 2005 <a href="trolltech.html">Trolltech</a></td>
51
<td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td>
52
<td width="30%" align="right"><div align="right">Qt 4.0.0</div></td>
53
</tr></table></div></address></body>