Quantcast
Channel: Installation and Deployment
Viewing all articles
Browse latest Browse all 22112

QAxObject property returns invalid QVariant

$
0
0
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()");     }

Viewing all articles
Browse latest Browse all 22112

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>