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

QImageFormatPlugin Class Reference

The QImageFormatPlugin class provides an abstract base for custom image format plugins. More...

#include <QImageFormatPlugin>

Inherits QObject.

Writable Properties

Public Functions

Public Slots

Signals

Static Public Members

Protected Functions


Detailed Description

The QImageFormatPlugin class provides an abstract base for custom image format plugins.

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

Writing an image 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

QImageFormatPlugin::QImageFormatPlugin ( QObject * parent = 0 )

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

QImageFormatPlugin::~QImageFormatPlugin ()

Destroys the image format plugin.

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

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

Installs a QImageIO image I/O handler for the image format format.

Reimplemented from QImageFormatInterface.

See also keys().

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

Returns the list of image formats this plugin supports.

Reimplemented from QFactoryInterface.

See also installIOHandler().


Copyright © 2004 Trolltech Trademarks
Qt 4.0.0-b1