Qt 4.8
Classes | Functions
qaxscript.h File Reference
#include <ActiveQt/qaxobject.h>

Go to the source code of this file.

Classes

class  QAxScript
 The QAxScript class provides a wrapper around script code. More...
 
class  QAxScriptEngine
 The QAxScriptEngine class provides a wrapper around a script engine. More...
 
class  QAxScriptManager
 The QAxScriptManager class provides a bridge between application objects and script code. More...
 

Functions

QAxBaseqax_create_object_wrapper (QObject *)
 

Function Documentation

◆ qax_create_object_wrapper()

QAxBase* qax_create_object_wrapper ( QObject )

Definition at line 51 of file qaxscriptwrapper.cpp.

Referenced by QAxScriptManager::addObject(), and QAxScriptEngine::scriptLanguage().

52 {
53  IDispatch *dispatch = 0;
54  QAxObject *wrapper = 0;
55  qAxFactory()->createObjectWrapper(object, &dispatch);
56  if (dispatch) {
57  wrapper = new QAxObject(dispatch, object);
58  wrapper->setObjectName(object->objectName());
59  dispatch->Release();
60  }
61  return wrapper;
62 }
QAxFactory * qAxFactory()
Definition: qaxserver.cpp:81
The QAxObject class provides a QObject that wraps a COM object.
Definition: qaxobject.h:54
void setObjectName(const QString &name)
Definition: qobject.cpp:1112
virtual bool createObjectWrapper(QObject *object, IDispatch **wrapper)
Reimplement this function to provide the COM object for object in wrapper.