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

Accessing styleData.index in treeview delegate crashes

    XMLWordPrintable

Details

    • Linux/X11, macOS, Windows
    • f862b3edeb8a96a49a5d12620506d33d5a5aadca (qt/qtdeclarative/5.14) 409807a022f65af86413ae09b5befff1eb99e727 (qt/qtdeclarative/5.12)

    Description

      If inside Tree view itemDelegate styleData.index is used it is crashing. Same styleData.index outside delegate is not crashing.

      Attached example can be used to reproduce:

      teps to reproduce: 
      1- Uncomment the Accessible.name property that binds to styleData.index; 
      2- Comment the Accessible.name property that binds to textItem2.text; 
      3 - Build and run; 
      4 - Expand a folder that has 2 or more children; 
      5 - Collapse the folder.  And Crash

      Attachments

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

        Activity

          People

            ulherman Ulf Hermann
            irfan.omair@digia.com Irfan Omair
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes