PDA

View Full Version : QAxWidget



codeman
14th August 2012, 10:01
Hello friends,

I am playing arround with the QAxWidget. I can create my control onto it. It is a custom control to show files in it.
So far so goog. But the dynamic call method blocks the ui. Is there a possibility to trigger the method in a another thread?

Yours,

yeye_olive
14th August 2012, 10:10
In general you must not make use of widgets in any thread but the main one. If I understand correctly the heavy work is done by a COM component that you call through dynamicCall(). Can you use a non-GUI component to do that? In that case you should be able to use QAxObject from another thread.

codeman
14th August 2012, 10:27
Yes you are right. The heavy work is done by the control. But I have to display the object. Now I add the widget into a stackedwidget etc.

But what about the object? How can I display it. What are the difference of both?

Edit: I have to correct myself it is an ActiveX Control.

Yours,