use

property Item object1
property Item object2

...

function createObjects() {
    object1 = component1.createObject(parent, paraneters)
    object2 = component2.createObject(parent, paraneters)
    checkCollisionsFunction(object1, object2)
}

06.10.2014 12:26, Peter Pykäläinen пишет:
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