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

TreeView: Editable and non-editable items not working correctly

    XMLWordPrintable

Details

    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
        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
            lysandra.sola Lysandra Sola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes