[SailfishDevel] Refrence dynamically created QML object?
Peter Pykäläinen
peter.pykalainen at gmail.com
Mon Oct 6 06:26:10 UTC 2014
Hi,
I have a problem with a dynamically created QML object and referencing it.
The problem is as follows:
- Create a dynamic QML object with createObject, assign signal to it. This
works fine.
- Create another dynamic QML object.
- I would need to check collision of these two new objects, I am using a
timer to check that.
- Now since I can not reference both objects with their IDs I can't get the
collision check to work.
Any ideas how to achive this?
I have tried to use a LlistModel to store all my objects, but looping
through them with JavaScript slows down my application significantly, so
this is not an option.
// Peter Pykäläinen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20141006/821332fb/attachment.html>
More information about the Devel
mailing list