<div dir="ltr">Cheers! Will do.<br></div><div class="gmail_extra"><br clear="all"><div><br>// Peter Pykäläinen</div>
<br><div class="gmail_quote">On 6 October 2014 10:19, <span dir="ltr"><<a href="mailto:piggz1@gmail.com" target="_blank">piggz1@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div 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)">I'm at work and only have my phone arm. If you haven't sorted it by 6pm gmt, let me know and I'll pass something on :)</div><span class=""> <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> </span><table style="background-color:white;border-spacing:0px" width="100%"> <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 8:15 AM</div><div><b>To: </b>Sailfish OS Developers</div><span class=""><div><b>Reply To: </b>Sailfish OS Developers</div></span><div><b>Subject: </b>Re: [SailfishDevel] Refrence dynamically created QML object?</div></div></td></tr></tbody></table><div><div class="h5"><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><div dir="ltr"><div><div>Thank you for your reply.<br></div>That sounds like it could work.<br></div>Care to share your solution how you store your objects?<br><br></div><div class="gmail_extra"><br clear="all"><div><br>// Peter Pykäläinen</div>
<br><div class="gmail_quote">On 6 October 2014 10:12, <span dir="ltr"><<a href="mailto:piggz1@gmail.com" target="_blank">piggz1@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div 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 style="background-color:white;border-spacing:0px" width="100%"> <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><div><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><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></div></div></div></div>
<br>_______________________________________________<br>
SailfishOS.org Devel mailing list<br>
To unsubscribe, please send a mail to <a href="mailto:devel-unsubscribe@lists.sailfishos.org" target="_blank">devel-unsubscribe@lists.sailfishos.org</a><br></blockquote></div><br></div>
<br></div></div></div></div>
<br>_______________________________________________<br>
SailfishOS.org Devel mailing list<br>
To unsubscribe, please send a mail to <a href="mailto:devel-unsubscribe@lists.sailfishos.org">devel-unsubscribe@lists.sailfishos.org</a><br></blockquote></div><br></div>