18class QDESIGNER_EXTENSION_EXPORT
QExtensionFactory :
public QObject,
public QAbstractExtensionFactory
21 Q_INTERFACES(QAbstractExtensionFactory)
23 explicit QExtensionFactory(QExtensionManager *parent =
nullptr);
25 QObject *extension(QObject *object,
const QString &iid)
const override;
26 QExtensionManager *extensionManager()
const;
29 void objectDestroyed(QObject *object);
32 virtual QObject *createExtension(QObject *object,
const QString &iid, QObject *parent)
const;
35 mutable QMap<std::pair<QString, QObject *>, QObject *> m_extensions;
37 mutable QHash<QObject*,
bool> m_extended;