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

[Reg 5.14.1-5.15.0] QML ListView not behaving as expected with ObjectModel

XMLWordPrintable

    • ab03621516630991c7cc0fea3be79879efed23a8 (qt/qtdeclarative/dev) 9d6cc0f7ecafde186ec729f44dd412be3c845638 (qt/qtdeclarative/5.15)

      when a new ObjectModel instance is assigned to the ListView object to change the user interface, contents of old model are not removed before assigning the new one.
      While on Qt5.14.0 previous model contents were removed after the new model was assigned to the ListView, it is no longer working with Qt5.14.1 and 5.15.0 - previous model contents stay on screen, which makes the models' contents overlap each other on the ListView.

      Please find the sample attached.

        1. qtbug84604.zip
          2 kB
          Shveta Mittal
        For Gerrit Dashboard: QTBUG-84604
        # Subject Branch Project Status CR V

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            shmittal Shveta Mittal
            Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes