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

Adding children to a c++ model from qml creates phantom duplicate child

    XMLWordPrintable

Details

    • Linux/Other display system, Windows

    Description

      Setting up code in qml to add a child to an object inside a model property passed from c++ and immediately then expanding the parent object displays two copies of the child object. The model while set to single selection has both duplicate children selected if one is selected, and the rowCount of the parent object reflects only one child added.

      See the attached sample project to replicate the issue.

      Attachments

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

        Activity

          People

            tokorpip Tomi Korpipää
            kevin.zhang Kevin Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes