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

NodeInstantiator doesn't reflect model changes

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • None
    • 5.5.0
    • Qt3D
    • None
    • Qt 5.5.0 for Windows 32-bit (VS 2010, 585 MB)
    • 3fc58a37f50cbae3d3e551dc6311771b561175cd

    Description

      If the NodeInstantiator is used with an (Abstract-)ListModel, it doesn't reakt to changes of the number of ListElements (although the count property is updated correctly). Furthermore if the number of ListElements is reduced, the program crashes.

      Attached you will find a simple example which demonstrates the behaviour. A QtQuick Timer is used to add elements to a ListModel every second. This ListModel is used with a NodeInstantiator to display a variable number of spheres. When the model count reaches 10, all ListElements are cleared from the ListModel.

      While this Program should display an increasing number of spheres (up to 10) only the initial two spheres are displayed (and moved according to the count property). After the ListModel has been cleared, the program crashes.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            lemire_p Paul Lemire
            fsommer Frank Sommer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes