QAxObject property returns invalid QVariant
General and Desktop
3
Posts
2
Posters
1.4k
Views
1
Watching
-
Hi,
in my first Qt project I try to automate another application via OLE.
Creating the application object and a sub object works (I see the form on desktop). Calling the method 'Quit' works too, but requesting a property value always returns an invalid QVariant.
Any idea, what I do wrong?Here a part of my source code:
@
QAxObject broker;
bool brokerReady = broker.setControl("Broker.Application");if(brokerReady) { QAxObject *analysis = broker.querySubObject("Analysis"); QVariant version = broker.property("Version"); broker.dynamicCall("Quit()"); }@