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

Crash after drag&drop if using proxy model and QHeaderView::ResizeToContents

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P2: Important
    • None
    • 5.7.1
    • Widgets: Itemviews
    • None
    • Windows 7 Pro, MSVC2015, Qt 5.7 32bit

    Description

      See the attached example.

      It creates a standard item model, subclassed to enable drag & drop (for moving items around).
      A standard sort filter proxy model is then created, with this model as source, and the proxy model added to a tree view with enabled drag & drop.

      As long as the tree view's header does not have section resize mode ResizeToContents everything works as expected. But if it has, dropping an item crashes in Qt, while calculating header sizes.

      Attachments

        1. testmove.zip
          3 kB
          Eike Ziller

        Issue Links

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

          Activity

            People

              mmutz Marc Mutz
              con Eike Ziller
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes