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

Wrong headernames after sorting model with a lot of data in a QTableView

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P2: Important
    • None
    • 4.8.6
    • Widgets: Itemviews
    • None
    • Ubuntu 14.04, Python 3

    Description

      This Bug just happens, when there is a lot of rows and columns in the model.

      When clicking on a headername of the QTableView to sort them, every headername changes to the last element of the columns list from the model.

      If you then click the headername again all columns that we did hide before are shown.

      I found out, that the headerData() function from the QAbstractTableModel becomes the value -1 for the section parameter, when this problem happens.

      Attachments

        1. main.cpp
          1 kB
        2. main.py
          8 kB
        3. main.ui
          0.6 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            chehrlic Christian Ehrlicher
            nfehren Navid Fehrenbacher
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes