1QStylePlugin(3qt)                                            QStylePlugin(3qt)
2
3
4

NAME

6       QStylePlugin - Abstract base for custom QStyle plugins
7

SYNOPSIS

9       #include <qstyleplugin.h>
10
11   Public Members
12       QStylePlugin ()
13       ~QStylePlugin ()
14       virtual QStringList keys () const = 0
15       virtual QStyle * create ( const QString & key ) = 0
16

DESCRIPTION

18       The QStylePlugin class provides an abstract base for custom QStyle
19       plugins.
20
21       The style plugin is a simple plugin interface that makes it easy to
22       create custom styles that can be loaded dynamically into applications
23       with a QStyleFactory.
24
25       Writing a style plugin is achieved by subclassing this base class,
26       reimplementing the pure virtual functions keys() and create(), and
27       exporting the class with the Q_EXPORT_PLUGIN macro. See the plugins
28       documentation for an example.
29
30       See also Plugins.
31

MEMBER FUNCTION DOCUMENTATION

QStylePlugin::QStylePlugin ()

34       Constructs a style plugin. This is invoked automatically by the
35       Q_EXPORT_PLUGIN macro.
36

QStylePlugin::~QStylePlugin ()

38       Destroys the style plugin.
39
40       You never have to call this explicitly. Qt destroys a plugin
41       automatically when it is no longer used.
42

QStyle * QStylePlugin::create ( const QString & key ) [pure virtual]

44       Creates and returns a QStyle object for the style key key. The style
45       key is usually the class name of the required style.
46
47       See also keys().
48

QStringList QStylePlugin::keys () const [pure virtual]

50       Returns the list of style keys this plugin supports.
51
52       These keys are usually the class names of the custom styles that are
53       implemented in the plugin.
54
55       See also create().
56
57

SEE ALSO

59       http://doc.trolltech.com/qstyleplugin.html
60       http://www.trolltech.com/faq/tech.html
61
63       Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com.  See the
64       license file included in the distribution for a complete license
65       statement.
66

AUTHOR

68       Generated automatically from the source code.
69

BUGS

71       If you find a bug in Qt, please report it as described in
72       http://doc.trolltech.com/bughowto.html.  Good bug reports help us to
73       help you. Thank you.
74
75       The definitive Qt documentation is provided in HTML format; it is
76       located at $QTDIR/doc/html and can be read using Qt Assistant or with a
77       web browser. This man page is provided as a convenience for those users
78       who prefer man pages, although this format is not officially supported
79       by Trolltech.
80
81       If you find errors in this manual page, please report them to qt-
82       bugs@trolltech.com.  Please include the name of the manual page
83       (qstyleplugin.3qt) and the Qt version (3.3.8).
84
85
86
87Trolltech AS                    2 February 2007              QStylePlugin(3qt)
Impressum