How to create a QQmlEngine and move it to a different thread?
next to the QQmlApplicationEngine running my GUI I want to create another QQmlEngine to host non visual qml code. This second engine should run in a different thread then the main thread in which the GUI runs.
How can I accomplish this?
Thanks in advance!
May be this can help you https://stackoverflow.com/questions/22289423/how-to-avoid-qt-app-exec-blocking-main-thread/22290909#22290909
@LeLev Thanks for the link! Unfortunately I want it the other way round: I wan't the GUI thread to stay in the main thread and a 2nd qml engine (w/o visible components) in it's own thread.