The COM object is a QAxObject with the CLSID .
Connect a signal to this slot:
QObject::connect(sender, SIGNAL(someSignal()), object, SLOT(Activate()));
Or call the function directly:
object->dynamicCall("Activate()");
Connect a signal to this slot:
QObject::connect(sender, SIGNAL(someSignal(int, int)), object, SLOT(ScrollTo(int, int)));
Or call the function directly:
QVariantList params = ... object->dynamicCall("ScrollTo(int, int)", params);
Connect a signal to this slot:
QObject::connect(sender, SIGNAL(someSignal(IMathcadRegion*)), object, SLOT(ScrollToRegion(IMathcadRegion*)));
Or call the function directly:
QVariantList params = ... object->dynamicCall("ScrollToRegion(IMathcadRegion*)", params);
Connect a signal to this slot:
QObject::connect(sender, SIGNAL(someSignal(int)), object, SLOT(SetHeight(int)));
Or call the function directly:
QVariantList params = ... object->dynamicCall("SetHeight(int)", params);
Connect a signal to this slot:
QObject::connect(sender, SIGNAL(someSignal(int)), object, SLOT(SetLeft(int)));
Or call the function directly:
QVariantList params = ... object->dynamicCall("SetLeft(int)", params);
Connect a signal to this slot:
QObject::connect(sender, SIGNAL(someSignal(int)), object, SLOT(SetTop(int)));
Or call the function directly:
QVariantList params = ... object->dynamicCall("SetTop(int)", params);
Connect a signal to this slot:
QObject::connect(sender, SIGNAL(someSignal(int)), object, SLOT(SetWidth(int)));
Or call the function directly:
QVariantList params = ... object->dynamicCall("SetWidth(int)", params);
Connect a signal to this slot:
QObject::connect(sender, SIGNAL(someSignal(__MIDL___MIDL_itf_automation_0262_0003)), object, SLOT(SetWindowState(__MIDL___MIDL_itf_automation_0262_0003)));
Or call the function directly:
QVariantList params = ... object->dynamicCall("SetWindowState(__MIDL___MIDL_itf_automation_0262_0003)", params);
Connect a signal to this slot:
QObject::connect(sender, SIGNAL(someSignal(int)), object, SLOT(SetZoom(int)));
Or call the function directly:
QVariantList params = ... object->dynamicCall("SetZoom(int)", 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("Height").toInt();Set this property' value using QObject::setProperty:
int newValue = ... object->setProperty("Height", newValue);Or using the SetHeight slot.
Read this property's value using QObject::property:
int val = object->property("Left").toInt();Set this property' value using QObject::setProperty:
int newValue = ... object->setProperty("Left", newValue);Or using the SetLeft slot.
Read this property's value using QObject::property:
IDispatch* val = object->property("Parent").toIDispatch*();
Read this property's value using QObject::property:
int val = object->property("Top").toInt();Set this property' value using QObject::setProperty:
int newValue = ... object->setProperty("Top", newValue);Or using the SetTop slot.
Read this property's value using QObject::property:
int val = object->property("Width").toInt();Set this property' value using QObject::setProperty:
int newValue = ... object->setProperty("Width", newValue);Or using the SetWidth slot.
Read this property's value using QObject::property:
int val = object->property("WindowState").toInt();Set this property' value using QObject::setProperty:
int newValue = ... // string representation of values also supported object->setProperty("WindowState", newValue);Or using the SetWindowState slot.
See also __MIDL___MIDL_itf_automation_0262_0003.
Read this property's value using QObject::property:
IDispatch* val = object->property("Worksheet").toIDispatch*();
Read this property's value using QObject::property:
int val = object->property("Zoom").toInt();Set this property' value using QObject::setProperty:
int newValue = ... object->setProperty("Zoom", newValue);Or using the SetZoom slot.
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.