Home | All Classes | Main Classes | Annotated | Grouped Classes | Functions

QPictureFormatPlugin Class Reference

The QPictureFormatPlugin class provides an abstract base for custom picture format plugins. More...

#include <QPictureFormatPlugin>

Inherits QObject.

Writable Properties

Public Functions

Public Slots

Signals

Static Public Members

Protected Functions


Detailed Description

The QPictureFormatPlugin class provides an abstract base for custom picture format plugins.

The picture format plugin is a simple plugin interface that makes it easy to create custom picture formats that can be used transparently by applications.

Writing an picture format plugin is achieved by subclassing this base class, reimplementing the pure virtual functions keys() and installIOHandler(), and exporting the class with the Q_EXPORT_PLUGIN macro. See the Plugins documentation for details.


Member Function Documentation

QPictureFormatPlugin::QPictureFormatPlugin ( QObject * parent = 0 )

Constructs an picture format plugin with the given parent. This is invoked automatically by the Q_EXPORT_PLUGIN macro.

QPictureFormatPlugin::~QPictureFormatPlugin ()

Destroys the picture format plugin.

You never have to call this explicitly. Qt destroys a plugin automatically when it is no longer used.

bool QPictureFormatPlugin::installIOHandler ( const QString & format )   [pure virtual]

Installs a QPictureIO picture I/O handler for the picture format format.

Reimplemented from QPictureFormatInterface.

See also keys().

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

Returns the list of picture formats this plugin supports.

Reimplemented from QFactoryInterface.

See also installIOHandler().


Copyright © 2004 Trolltech Trademarks
Qt 4.0.0-b1