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

TreeView: Editable and non-editable items not working correctly

    XMLWordPrintable

Details

    • e3ef5ef2f (dev), 7874babe9 (6.10), fbbdeac60 (6.9), f9d0c5ff8 (tqtc/lts-6.8)

    Description

      A TreeView which uses a TreeViewDelegate and has edit triggers set allows editing of non-editable parent items and does not allow editing of editable child items stored in a QStandardItemModel.

      Steps to reproduce:
      1. Run the attached example project
      2. Expand the parent items.
      3. Double click on the "Main Branch 1" parent item. Observe the non-editable item cannot be edited.
      4. Double click on the "Main Branch 2" parent item. Observe the non-editable item can be edited. Expected behavior: the parent item should be non-editable
      5. Double click on the "Sub branch 1.2" child item. Observe the editable item can edited
      6. Double click on the "Sub branch 1.1" child item. Observe the editable item cannot be edited. Expected behavior: the child item should be editable

      Attachments

        1. Details.png
          Details.png
          60 kB
        2. qtbug136492.zip
          2 kB
        For Gerrit Dashboard: QTBUG-136492
        # Subject Branch Project Status CR V

        Activity

          People

            richard Richard Moe Gustavsen
            lysandra.sola Lysandra Sola
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: