The COM object is a QAxObject with the CLSID .
Connect a signal to this slot:
QObject::connect(sender, SIGNAL(someSignal(IDispatch*)), object, SLOT(AddCustomItem(IDispatch*)));
Or call the function directly:
QVariantList params = ... object->dynamicCall("AddCustomItem(IDispatch*)", params);
Connect a signal to this slot:
QObject::connect(sender, SIGNAL(someSignal(QVariant)), object, SLOT(RemoveCustomItem(QVariant)));
Or call the function directly:
QVariantList params = ... object->dynamicCall("RemoveCustomItem(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:
IDispatch* val = object->property("CustomItems").toIDispatch*();
Read this property's value using QObject::property:
IDispatch* val = object->property("Parent").toIDispatch*();
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.