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

QTreeWidget asserts on drag start after moving/hiding columns

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.2.1
    • Fix Version/s: 4.8.7, 5.3.1
    • Component/s: Widgets: Itemviews
    • Labels:
      None
    • Commits:
      85aef2dd4b059d2ba9cba4605d9fef87f3e2c4fc (stable, 7.5.2014, 5.3.1) 6d76e943dab0971d376cebb15fe531efc60622ac (4.8, 8.5.2014, 4.8.7)

      Description

      QTreeWidget asserts on drag start when a column is hidden and moved.
      Attach example reproduces the problem:
      Steps:
      Run the application and then hit Hide
      Then hit Move
      does not matter if it is moved first or hidden first.
      start draging top or any item, it asserts.
      ASSERT failure in QVector<T>::at: "index out of range"

        Attachments

        1. main.cpp
          2 kB
        2. qtbug37813_diag.patch
          3 kB
        3. qtbug37813_stack.txt
          19 kB
        4. qtbug37813.zip
          299 kB

          Issue Links

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

            Activity

              People

              Assignee:
              kleint Friedemann Kleint
              Reporter:
              qtcomsupport Qt Support
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes