<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    use<br>
    <br>
    <tt>property Item object1</tt><tt><br>
    </tt><tt>property Item object2</tt><tt><br>
    </tt><tt><br>
    </tt><tt>...</tt><tt><br>
    </tt><tt><br>
    </tt><tt>function createObjects() {</tt><tt><br>
    </tt><tt>
          object1 = component1.createObject(parent, paraneters)</tt><tt><br>
    </tt><tt>
          object2 = component2.createObject(parent, paraneters)</tt><tt><br>
    </tt><tt>    checkCollisionsFunction(object1, object2)</tt><tt><br>
    </tt><tt>}</tt><br>
    <br>
    <div class="moz-cite-prefix">06.10.2014 12:26, Peter Pykäläinen
      пишет:<br>
    </div>
    <blockquote
cite="mid:CAAE-zEz=iLQO+S-j3ADqaJi=UScAf4MD8LMOnYc8wNO3Lr4FRQ@mail.gmail.com"
      type="cite">
      <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>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to <a class="moz-txt-link-abbreviated" href="mailto:devel-unsubscribe@lists.sailfishos.org">devel-unsubscribe@lists.sailfishos.org</a></pre>
    </blockquote>
    <br>
  </body>
</html>