Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

[SOLVED] QML/C++ integration: QDeclartiveView and Context property usage

$
0
0
@chrisadams Thanks! Both the explanation and example code helped me get through the hurdle. Here’s what was happening. I have a multi-threaded application which uses MVC. While the main thread was doing viewer->setSource(QUrl(“qrc:/QML/main.qml”)), a worker thread was running in the background attempting to set a context property. From what I can see in the backtrace the main thread and the worker thread were both trying to execute something in QTJSC. I’m assuming this isn’t thread safe thus the crash was occurring due to one thread writing a value/pointer that another thread was using. If this assumption is wrong let me know, otherwise I think this one is solved.

Viewing all articles
Browse latest Browse all 4972

Trending Articles