Eneboo - Documentación para desarrolladores
|
#include <AQSWrapperFactory.h>
Métodos públicos | |
AQSWrapperFactory () | |
~AQSWrapperFactory () | |
QObject * | create (const QString &className, void *ptr) |
Métodos públicos estáticos | |
static QObject * | staticCreate (const QString &className, void *ptr) |
AQSWrapperFactory::AQSWrapperFactory | ( | ) |
AQSWrapperFactory::~AQSWrapperFactory | ( | ) |
This function is called by the Qt Script interpreter to request a wrapper for the type className. ptr is a pointer to the instance of the type className. The ptr will be passed to its related wrapper function and an instance of the wrapper will be returned.
Reimplement this function to make your wrappers available from your wrapper factory.
If ptr is invalid or any other invalid operation occurs, you can use throwError() to issue a Qt Script error.
Implementa QSWrapperFactory.