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

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

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes