Qt::QueuedConnection from QML
-
0 down vote favorite
share [g+] share [fb] share [tw]I have C++ class emitting signal and QML slot. I need to execute slot in the same thread after program returns to the event loop.
How can I achieve something like this?@Connections {
target: box2dCppEngine
onBulletCollided: box2dCppEngine.deleteObject(bullet)
connectionType: Qt.QueuedConnection
}
@I need this because I can not execute deleteObject, while processing the collision, I need to do this after world step.