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

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

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes