|QAxObject(QObject * parent = 0)|
|QAxObject(const QString & c, QObject * parent = 0)|
|QAxObject(IUnknown * iface, QObject * parent = 0)|
|bool||doVerb(const QString & verb)|
Reimplemented Protected Functions
|virtual void||connectNotify(const char * signal)|
Additional Inherited Members
- 1 property inherited from QObject
- 1 property inherited from QAxBase
- 1 public slot inherited from QObject
- 1 signal inherited from QObject
- 3 signals inherited from QAxBase
- 7 static public members inherited from QObject
- 8 protected functions inherited from QObject
- 5 protected functions inherited from QAxBase
A QAxObject can be instantiated as an empty object, with the name of the COM object it should wrap, or with a pointer to the IUnknown that represents an existing COM object. If the COM object implements the
IDispatch interface, the properties, methods and events of that object become available as Qt properties, slots and signals. The base class, QAxBase, provides an API to access the COM object directly through the IUnknown pointer.
Warning: You can subclass QAxObject, but you cannot use the Q_OBJECT macro in the subclass (the generated moc-file will not compile), so you cannot add further signals, slots or properties. This limitation is due to the metaobject information generated in runtime. To work around this problem, aggregate the QAxObject as a member of the QObject subclass.
Member Function Documentation
QAxObject::QAxObject(QObject * parent = 0)
See also setControl().
QAxObject::QAxObject(IUnknown * iface, QObject * parent = 0)
Releases the COM object and destroys the QAxObject, cleaning up all allocated resources.
Reimplemented from QObject::connectNotify().
bool QAxObject::doVerb(const QString & verb)
Requests the COM object to perform the action verb. The possible verbs are returned by verbs().
The function returns true if the object could perform the action, otherwise returns false.
This function was introduced in Qt 4.1.
© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.