<html><head></head><body style="background-color: rgb(255, 255, 255); line-height: initial;"><div style="width: 100%; font-size: initial; font-family: Calibri, 'Slate Pro', sans-serif; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(255, 255, 255);">‎Can't you just store each object in a different javascript object? When I create a bunch of objects in my games I store them in javascript arrays.</div>                                                                                                                                     <div style="width: 100%; font-size: initial; font-family: Calibri, 'Slate Pro', sans-serif; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(255, 255, 255);"><br style="display:initial"></div>                                                                                                                                     <div style="font-size: initial; font-family: Calibri, 'Slate Pro', sans-serif; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(255, 255, 255);">Sent from my BlackBerry 10 smartphone.</div>                                                                                                                                                                                  <table width="100%" style="background-color:white;border-spacing:0px;"> <tbody><tr><td colspan="2" style="font-size: initial; text-align: initial; background-color: rgb(255, 255, 255);">                           <div style="border-style: solid none none; border-top-color: rgb(181, 196, 223); border-top-width: 1pt; padding: 3pt 0in 0in; font-family: Tahoma, 'BB Alpha Sans', 'Slate Pro'; font-size: 10pt;">  <div><b>From: </b>Peter Pykäläinen</div><div><b>Sent: </b>Monday, 6 October 2014 7:26 AM</div><div><b>To: </b>devel</div><div><b>Reply To: </b>Sailfish OS Developers</div><div><b>Subject: </b>[SailfishDevel] Refrence dynamically created QML object?</div></div></td></tr></tbody></table><div style="border-style: solid none none; border-top-color: rgb(186, 188, 209); border-top-width: 1pt; font-size: initial; text-align: initial; background-color: rgb(255, 255, 255);"></div><br><div id="_originalContent" style=""><div dir="ltr"><div><div><div><div><div><div><div><div>Hi,<br><br></div>I have a problem with a dynamically created QML object and referencing it.<br></div>The problem is as follows:<br><br></div>- Create a dynamic QML object with createObject, assign signal to it. This works fine.<br></div>- Create another dynamic QML object.<br></div>- I would need to check collision of these two new objects, I am using a timer to check that.<br></div>- Now since I can not reference both objects with their IDs I can't get the collision check to work.<br><br></div>Any ideas how to achive this?<br><br></div>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.<br clear="all"><div><div><div><div><div><div><div><div><div><div><br>// Peter Pykäläinen</div>
</div></div></div></div></div></div></div></div></div></div>
<br><!--end of _originalContent --></div></body></html>