[Qt-qml] Object passing in threaded applications.
René Hansen
ext-rene.1.hansen at nokia.com
Thu Nov 11 13:23:20 CET 2010
On Thu, 2010-11-11 at 01:16 +0100, Lam Bea (Nokia-MS-Qt/Brisbane) wrote:
> 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.
I had that suspicion, but thank you for clearing it up. I see the
changes has propagated to the online docs as well.
I guess it doesn't really bring me closer to my intended use of
asynchronously interacting with QML objects, but I'll find some other
way.
Best regards,
/René
More information about the Qt-qml
mailing list