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

ListView doesn't update properly

    XMLWordPrintable

Details

    • 0e64bd96fbf26855a65e38847083dbd2c6bee4ac

    Description

      Sometimes we get to crashes if the objects item is passed back to C++.

      Something like would crash as forwardTo will have stored dangling pointers when the ListView decides to clear delegates in some occasions.

      ListView {
          header: TextField { id: filter }
          model: SomeModel { filter: filter.text }
          Keys.forwardTo: [currentItem]
      }
      

      Related bug reports in our bugzilla:
      https://bugs.kde.org/show_bug.cgi?id=381814
      https://bugs.kde.org/show_bug.cgi?id=389168
      (and duplicates)

      It always refers to this forwardTo sending events to objects that don't exist anymore.
      Patch follows.

      Attachments

        For Gerrit Dashboard: QTBUG-65881
        # Subject Branch Project Status CR V

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            apol Aleix Pol
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes