PythonQt
Public Member Functions | List of all members
PythonQtCppWrapperFactory Class Referenceabstract

Factory interface for C++ classes that can be wrapped by QObject objects. More...

#include <PythonQtCppWrapperFactory.h>

Public Member Functions

 PythonQtCppWrapperFactory ()
 
virtual ~PythonQtCppWrapperFactory ()
 
virtual QObject * create (const QByteArray &classname, void *ptr)=0
 create a wrapper for the given object More...
 

Detailed Description

Factory interface for C++ classes that can be wrapped by QObject objects.

To create your own factory, derive PythonQtCppWrapperFactory and implement the create() method. A factory can be added to PythonQt by PythonQt::addCppWrapperFactory().

Definition at line 56 of file PythonQtCppWrapperFactory.h.

Constructor & Destructor Documentation

◆ PythonQtCppWrapperFactory()

PythonQtCppWrapperFactory::PythonQtCppWrapperFactory ( )
inline

Definition at line 60 of file PythonQtCppWrapperFactory.h.

60 {};

◆ ~PythonQtCppWrapperFactory()

virtual PythonQtCppWrapperFactory::~PythonQtCppWrapperFactory ( )
inlinevirtual

Definition at line 61 of file PythonQtCppWrapperFactory.h.

61 {};

Member Function Documentation

◆ create()

virtual QObject* PythonQtCppWrapperFactory::create ( const QByteArray &  classname,
void *  ptr 
)
pure virtual

create a wrapper for the given object


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