|QAxObject (QObject * parent = nullptr)|
|QAxObject (const QString & c , QObject * parent = nullptr)|
|QAxObject (IUnknown * iface , QObject * parent = nullptr)|
|virtual||~QAxObject () override|
|bool||doVerb (const QString & verb )|
|virtual void||connectNotify (const QMetaMethod & signal ) override|
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
interface, the properties, methods and events of that object become available as Qt properties, slots and signals. The base class,
, provides an API to access the COM object directly through the IUnknown pointer.
警告： 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.
另请参阅 setControl ().
Releases the COM object and destroys the QAxObject , cleaning up all allocated resources.
[override virtual protected]void QAxObject:: connectNotify (const QMetaMethod & signal )
Reimplemented from QObject::connectNotify ().
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.