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

treeview's delegate is destructed after rowsremoved, not rowsabouttoberemoved

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.9
    • Quick: Controls 2
    • None
    • All

    Description

      the delgegate is deleted after model's signal rowsRemoved.

      the model's signal rowsAboutToBeRemoved should trigger view to deleting delegates (like other views) before signal 'rowsRemoved'.

      but the truth is: the rowsAboutToBeRemoved of TreeView's model scheduled something to delete delegate, but not direct call, so the delegate is deleted after signal rowsRemoved.

      another solution is implement TreeView's attached signal ‘remove' like other views, then we can response it for release resources retained from model.

      the Treeviews' behaviors about signal 'rowsAboutToBeRemoved' and 'rowsRemoved' is different with other views'.

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            niqingliang2003 niqingliang2003
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes