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

[Reg 6.7->6.8] Wrong item count in ListView/Repeater

    XMLWordPrintable

Details

    • a9af10e1e (dev), 2ea3abed0 (6.8), 8d811bb88 (6.7), 4bd303b2a (tqtc/lts-6.5), 4bb16ce2c (dev), 281f620ce (dev), 3330731d0 (6.8), 2aefbca84 (6.8), 21f282bd4 (tqtc/lts-6.5), ac055453c (tqtc/lts-6.5)

    Description

      Consider the following code: https://invent.kde.org/nicolasfella/modeltest

      It has a model with 10 rows that feeds a ListView. The ListView instantiates 20 delegates, i.e. twice as many as expected.

      There's 10 "qrc:/qt/qml/modeltest/Main.qml:21:13: Unable to assign [undefined] to QString" warnings printed.

      The count property of the ListView is 20.

      Tested with current 6.8 branch (qtbase 93e39f7b79a71233d356108142aa446f29a60c76, qtdeclarative 322312222a67b45cae6201ff928eb34caf623c8f).

      This seems to be caused by https://codereview.qt-project.org/c/qt/qtdeclarative/+/571132

      Attachments

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

        Activity

          People

            mitch_curtis Mitch Curtis
            nicolasfella Nicolas Fella
            Votes:
            4 Vote for this issue
            Watchers:
            13 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: