[Qt-qml] Object passing in threaded applications.

bea.lam at nokia.com bea.lam at nokia.com
Thu Nov 11 01:16:51 CET 2010


Hi René,

On 10/11/2010, at 10:49 PM, ext René Hansen wrote:
> 
> And my question is then, is there any other QML objects besides
> ListModel I can use? Where can I find the documentation? Why isn't there
> support of custom objects?
> 

No, the WorkerScript doesn't support passing of custom objects; the only QObject* type that can be passed is ListModel. The docs were recently fixed to reflect this (see QTBUG-14919) but the change hasn't propagated to the online docs snapshot yet. 

The limitations are due to the restrictions on using QObjects from other threads. In addition all JavaScript objects and arrays are copied when passed, and cannot be directly modified from the other thread.


regards,

Bea





More information about the Qt-qml mailing list