Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QAbstractExtensionFactory Class Referenceabstract

The QAbstractExtensionFactory class provides an interface for extension factories in \QD. More...

#include <extension.h>

+ Inheritance diagram for QAbstractExtensionFactory:
+ Collaboration diagram for QAbstractExtensionFactory:

Public Member Functions

virtual ~QAbstractExtensionFactory ()
 Destroys the extension factory.
 
virtual QObjectextension (QObject *object, const QString &iid) const =0
 Returns the extension specified by iid for the given object.
 

Detailed Description

The QAbstractExtensionFactory class provides an interface for extension factories in \QD.

\inmodule QtDesigner

QAbstractExtensionFactory is not intended to be instantiated directly; use the QExtensionFactory instead.

In \QD, extension factories are used to look up and create named extensions as they are required. For that reason, when implementing a custom extension, you must also create a QExtensionFactory, i.e a class that is able to make an instance of your extension, and register it using \QD's \l {QExtensionManager}{extension manager}.

When an extension is required, \QD's \l {QExtensionManager}{extension manager} will run through all its registered factories calling QExtensionFactory::createExtension() for each until the first one that is able to create the requested extension for the selected object, is found. This factory will then make an instance of the extension.

See also
QExtensionFactory, QExtensionManager

Definition at line 16 of file extension.h.

Constructor & Destructor Documentation

◆ ~QAbstractExtensionFactory()

QAbstractExtensionFactory::~QAbstractExtensionFactory ( )
virtualdefault

Destroys the extension factory.

Member Function Documentation

◆ extension()

virtual QObject * QAbstractExtensionFactory::extension ( QObject * object,
const QString & iid ) const
pure virtual

Returns the extension specified by iid for the given object.

Implemented in QDesignerAbstractPropertySheetFactory, and QExtensionFactory.


The documentation for this class was generated from the following files: