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

[Reg] TreeView editDelegate doesn't get positioned correctly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • 6.8.1
    • 6.8.0
    • Quick: Other
    • None
    • fdc2a052a (dev), 37e41ed75 (6.8)

    Description

      Trying to edit cells in a TreeView. But the TextEdit starts editing the parent node or some other nonsensical location. Pretty sure this used to work fine in Version 6.7.3.

      Starting Point:

      After Double clicking on "Child 1":

       

      Also after hitting enter the "Child 1" text doesn't become visible again either:

       

      $Model ist just a simple QStandardItemModel I bound to the context. In Qml I'm using the TreeViewDelegate  but also I managed to reproduce it with a custom delegate.

      import QtQuick
      import QtQuick.Controls
      ApplicationWindow {
          width: 800
          height: 600
          visible: true    TreeView {
              id: treeView
              anchors.fill: parent
              anchors.margins: 10
              clip: true        
              selectionModel: ItemSelectionModel {}
              editTriggers: TableView.DoubleTapped
              model: $Model        
              delegate: TreeViewDelegate {
                  font.pointSize: 14
              }
          }
      }
      

       

      Attachments

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

        Activity

          People

            kagro Kaj Grönholm
            manimax3 Maximilian Schilller
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes