The COM object is a QAxObject with the CLSID .
Connect a signal to this slot:
QObject::connect(sender, SIGNAL(someSignal(QVariant)), object, SLOT(Item(QVariant)));
Or call the function directly:
QVariantList params = ... QAxObject * result = object->querySubObject("Item(QVariant)", params);
Connect a slot to this signal:
QObject::connect(object, SIGNAL(exception(int, QString, QString, QString)), receiver, SLOT(someSlot(int, QString, QString, QString)));
Connect a slot to this signal:
QObject::connect(object, SIGNAL(propertyChanged(QString)), receiver, SLOT(someSlot(QString)));
Connect a slot to this signal:
QObject::connect(object, SIGNAL(signal(QString, int, void*)), receiver, SLOT(someSlot(QString, int, void*)));
Read this property's value using QObject::property:
QString val = object->property("objectName").toString();Set this property' value using QObject::setProperty:
QString newValue = ... object->setProperty("objectName", newValue);Or using the setObjectName slot.
Read this property's value using QObject::property:
IDispatch* val = object->property("Application").toIDispatch*();
Read this property's value using QObject::property:
int val = object->property("Count").toInt();
Read this property's value using QObject::property:
IDispatch* val = object->property("Parent").toIDispatch*();
Read this property's value using QObject::property:
IUnknown* val = object->property("_NewEnum").toIUnknown*();
Read this property's value using QObject::property:
QString val = object->property("control").toString();Set this property' value using QObject::setProperty:
QString newValue = ... object->setProperty("control", newValue);Or using the setControl slot.