source: trunk/doc/html/qstyleplugin.html

Last change on this file was 190, checked in by rudi, 14 years ago

reference documentation added

File size: 4.3 KB
RevLine 
[190]1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2<!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/src/styles/qstyleplugin.cpp:47 -->
3<html>
4<head>
5<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
6<title>QStylePlugin Class</title>
7<style type="text/css"><!--
8fn { margin-left: 1cm; text-indent: -1cm; }
9a:link { color: #004faf; text-decoration: none }
10a:visited { color: #672967; text-decoration: none }
11body { background: #ffffff; color: black; }
12--></style>
13</head>
14<body>
15
16<table border="0" cellpadding="0" cellspacing="0" width="100%">
17<tr bgcolor="#E5E5E5">
18<td valign=center>
19 <a href="index.html">
20<font color="#004faf">Home</font></a>
21 | <a href="classes.html">
22<font color="#004faf">All&nbsp;Classes</font></a>
23 | <a href="mainclasses.html">
24<font color="#004faf">Main&nbsp;Classes</font></a>
25 | <a href="annotated.html">
26<font color="#004faf">Annotated</font></a>
27 | <a href="groups.html">
28<font color="#004faf">Grouped&nbsp;Classes</font></a>
29 | <a href="functions.html">
30<font color="#004faf">Functions</font></a>
31</td>
32<td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>QStylePlugin Class Reference</h1>
33
34<p>The QStylePlugin class provides an abstract base for custom QStyle plugins.
35<a href="#details">More...</a>
36<p><tt>#include &lt;<a href="qstyleplugin-h.html">qstyleplugin.h</a>&gt;</tt>
37<p><a href="qstyleplugin-members.html">List of all member functions.</a>
38<h2>Public Members</h2>
39<ul>
40<li class=fn><a href="#QStylePlugin"><b>QStylePlugin</b></a> ()</li>
41<li class=fn><a href="#~QStylePlugin"><b>~QStylePlugin</b></a> ()</li>
42<li class=fn>virtual QStringList <a href="#keys"><b>keys</b></a> () const = 0</li>
43<li class=fn>virtual QStyle * <a href="#create"><b>create</b></a> ( const&nbsp;QString&nbsp;&amp;&nbsp;key ) = 0</li>
44</ul>
45<hr><a name="details"></a><h2>Detailed Description</h2>
46
47
48The QStylePlugin class provides an abstract base for custom <a href="qstyle.html">QStyle</a> plugins.
49<p>
50<p> The style plugin is a simple plugin interface that makes it easy
51to create custom styles that can be loaded dynamically into
52applications with a <a href="qstylefactory.html">QStyleFactory</a>.
53<p> Writing a style plugin is achieved by subclassing this base class,
54reimplementing the pure virtual functions <a href="#keys">keys</a>() and <a href="#create">create</a>(), and
55exporting the class with the <tt>Q_EXPORT_PLUGIN</tt> macro. See the
56<a href="plugins-howto.html">plugins documentation</a> for an
57example.
58<p>See also <a href="plugins.html">Plugins</a>.
59
60<hr><h2>Member Function Documentation</h2>
61<h3 class=fn><a name="QStylePlugin"></a>QStylePlugin::QStylePlugin ()
62</h3>
63Constructs a style plugin. This is invoked automatically by the
64<tt>Q_EXPORT_PLUGIN</tt> macro.
65
66<h3 class=fn><a name="~QStylePlugin"></a>QStylePlugin::~QStylePlugin ()
67</h3>
68Destroys the style plugin.
69<p> You never have to call this explicitly. Qt destroys a plugin
70automatically when it is no longer used.
71
72<h3 class=fn><a href="qstyle.html">QStyle</a>&nbsp;* <a name="create"></a>QStylePlugin::create ( const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp;&nbsp;key )<tt> [pure virtual]</tt>
73</h3>
74
75<p> Creates and returns a <a href="qstyle.html">QStyle</a> object for the style key <em>key</em>. The
76style key is usually the class name of the required style.
77<p> <p>See also <a href="#keys">keys</a>().
78
79<h3 class=fn><a href="qstringlist.html">QStringList</a> <a name="keys"></a>QStylePlugin::keys () const<tt> [pure virtual]</tt>
80</h3>
81
82<p> Returns the list of style keys this plugin supports.
83<p> These keys are usually the class names of the custom styles that
84are implemented in the plugin.
85<p> <p>See also <a href="#create">create</a>().
86
87<!-- eof -->
88<hr><p>
89This file is part of the <a href="index.html">Qt toolkit</a>.
90Copyright &copy; 1995-2007
91<a href="http://www.trolltech.com/">Trolltech</a>. All Rights Reserved.<p><address><hr><div align=center>
92<table width=100% cellspacing=0 border=0><tr>
93<td>Copyright &copy; 2007
94<a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
95<td align=right><div align=right>Qt 3.3.8</div>
96</table></div></address></body>
97</html>
Note: See TracBrowser for help on using the repository browser.