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

QStandardItem exist in two parent items after drag when itemChanged emited in QStandardItemModel

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P3: Somewhat important
    • None
    • 5.11.0
    • Core: Item Models
    • None
    • Windows 10 Pro x64 MSVC2015x64 Qt 5.11

    Description

      QStandardItem exist in two parent items after drag when itemChanged emited in QStandardItemModel. I use QTreeView and StandardItemModel for my project.

      Steps to reproduce:
      1. Run TreeStandardItemModel.zip project.

      2. Drag "item" from "group_1" to "group_2"

       

      3. See debug output, from slot that react on QStandardItemModel::itemChanged. Debug output:

      "group_1 rowCount: " 1 child name: "item"
      
      "group_2 rowCount: " 1 child name: "item"
      

      Attachments

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

        Activity

          People

            dfaure_kdab David Faure
            AndriySlisarchuk Andriy Slisarchuk
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes