#include <QtCore/qplugin.h> #ifndef QPLUGIN_H #define Q_PLUGIN_INSTANCE(IMPLEMENTATION) { static QPointer< IMPLEMENTATION > _instance; if (!_instance) _instance = new IMPLEMENTATION; return _instance; } #endif // Q_PLUGIN_H