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

DelegateModel can crash with retranslate()

    XMLWordPrintable

Details

    Description

      Doesn't seem to crash with Qt 6, or perhaps it was just good luck.

      Unfortunately I couldn't reduce the example further, but attached example crashes if retranslate() is called repeatedly. To do that, click the button at the top few times.

      Qt 5 in debug build triggers an assert QList::at which is called by QQmlDelegateModelPrivate::itemsRemoved().

      Attachments

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            poikelin Joni Poikelin
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: