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 :)

Sent from my BlackBerry 10 smartphone.
From: Peter Pykäläinen
Sent: Monday, 6 October 2014 8:15 AM
To: Sailfish OS Developers
Reply To: Sailfish OS Developers
Subject: Re: [SailfishDevel] Refrence dynamically created QML object?

Thank you for your reply.
That sounds like it could work.
Care to share your solution how you store your objects?



// Peter Pykäläinen

On 6 October 2014 10:12, <pig...@gmail.com> wrote:
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.

Sent from my BlackBerry 10 smartphone.
From: Peter Pykäläinen
Sent: Monday, 6 October 2014 7:26 AM
To: devel
Reply To: Sailfish OS Developers
Subject: [SailfishDevel] Refrence dynamically created QML object?

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


_______________________________________________
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org


_______________________________________________
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Reply via email to