Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-47055

Dynamic items creation not working

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 5.7.0 RC
    • 5.5.0, 5.6.0, 5.7.0 Beta
    • Qt3D
    • None
    • 9e07d3ae8f5b90b84735b3b8b81fa6c749a646b2

      Hi, the runtime creation of an Entity is not possible anymore (it was at some point during the Qt3D development)

      Basically the classic way to create an item does nothing:
      var component = Qt.createComponent("qrc:/MyEntity.qml");
      var meshObj = component.createObject(parent, { });

      Attached a modified version of the "controls" example to reproduce the issue.
      Hope it helps

        1. controls.tar.gz
          35 kB
          Massimo Callegari
        2. dynamic-scene.tar.gz
          3 kB
          Massimo Callegari
        3. dynamic-scene-5.7.tar.gz
          3 kB
          Massimo Callegari
        4. dynamic-scene-cpp-qml-workaround.tar.gz
          3 kB
          Massimo Callegari
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            seanharmer Sean Harmer
            mcallegari79 Massimo Callegari
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes