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

        1. qtbug91276.zip
          7 kB
          Joni Poikelin
        For Gerrit Dashboard: QTBUG-91276
        # Subject Branch Project Status CR V

        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:

              Gerrit Reviews

                There are no open Gerrit changes