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

QTableView span gets confused with logical indexes when columns are moved

    XMLWordPrintable

Details

    • 20a40035fa (qt/tqtc-qtbase/dev) 97a8a73ce4 (qt/qtbase/6.4) 97a8a73ce4 (qt/tqtc-qtbase/6.4) 91af62e860 (qt/tqtc-qtbase/6.2) 6318a20355 (qt/qtbase/6.3) 6318a20355 (qt/tqtc-qtbase/6.3)

    Description

      When a QtableView has a row spanned and when one of the columns is moved, it is not behaving correctly. Please refer to the attached sample,

      In the sample, Row 3 is spanned to all the columns and when column 1 moves to position 2 and try to fix the spanning again, you can see that on selecting column 1, the contents of row2 is not visible completely, as it is covered with selection color of column1. The reason seems to be the index for row2 and column 1(i.e. now on 2nd position) has column-span 1, whereas it should be 4.
      Attaching the snapshots for before and after column move.

      Attachments

        1. qtbug91896.zip
          3 kB
        2. afterColumnMove.PNG
          afterColumnMove.PNG
          33 kB
        3. beforeColumnMove.PNG
          beforeColumnMove.PNG
          41 kB
        4. qtbug91896_1.zip
          4 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            richard Richard Moe Gustavsen
            shmittal Shveta Mittal (Inactive)
            Votes:
            5 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes