![]() |
Home · All Classes · Main Classes · Annotated · Grouped Classes · Functions | ![]() |
The QWidgetPlugin class provides an abstract base for custom QWidget plugins. More...
#include <QWidgetPlugin>
Part of the QtGui module.
Inherits QObject.
Inherited by QWidgetContainerPlugin.
The QWidgetPlugin class provides an abstract base for custom QWidget plugins.
The widget plugin is a simple plugin interface that makes it easy to create custom widgets that can be included in other Qt applications.
Writing a widget plugin is achieved by subclassing this base class, reimplementing the pure virtual functions keys(), create(), group(), iconSet(), includeFile(), toolTip(), whatsThis() and isContainer(), and exporting the class with the Q_EXPORT_PLUGIN macro.
See also Plugins Documentation.
Constructs a widget plugin with the given parent. This is invoked automatically by the Q_EXPORT_PLUGIN macro.
Destroys the widget plugin.
You never have to call this explicitly. Qt destroys a plugin automatically when it is no longer used.
Creates and returns a QWidget object for the widget key key. The widget key is the class name of the required widget. The name and parent arguments are passed to the custom widget's constructor.
See also keys().
Returns the group (toolbar name) that the custom widget of class key should be part of when Qt Designer loads it.
The default implementation returns a null QString.
Returns the icon that Qt Designer should use to represent the custom widget of class key in the toolbar.
The default implementation returns an null icon.
Returns the name of the include file that Qt Designer and uic should use to include the custom widget of class key in generated code.
The default implementation returns a null QString.
Returns true if the custom widget of class key can contain other widgets, e.g. like QFrame; otherwise returns false.
The default implementation returns false.
Returns the list of widget keys this plugin supports.
These keys must be the class names of the custom widgets that are implemented in the plugin.
Reimplemented from QFactoryInterface.
See also create().
Returns the text of the tooltip that Qt Designer should use for the custom widget of class key's toolbar button.
The default implementation returns a null QString.
Returns the text of the whatsThis text that Qt Designer should use when the user requests whatsThis help for the custom widget of class key.
The default implementation returns a null QString.
Copyright © 2005 Trolltech | Trademarks | Qt 4.0.0-b2 |