QPictureFormatPlugin Class
The QPictureFormatPlugin class provides an abstract base for custom picture format plugins. More...
| Header: | #include <QPictureFormatPlugin> |
| qmake: | QT += gui |
| Inherits: | QObject |
This class is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
Detailed Description
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 loadPicture(), savePicture(), and installIOHandler(), and exporting the class with the Q_PLUGIN_METADATA() macro.
The json file containing the metadata should contain one entry with the list of picture formats supported by the plugin:
{ "Keys": [ "mypictureformat" ] }
See also How to Create Qt Plugins.