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

QTableView selection changes after modifying values in sorted table

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • None
    • 4.8.x, 5.4.2, 5.5.0
    • Widgets: Itemviews
    • None
    • Windows, Linux, Android
    • Ie1bc4071a275dd76d113d883ab30ccd4cb1fa625

    Description

      i. Let's have a table with multiple columns and rows with sortable values(eg. numbers).
      ii. Lets sort the table by random column.
      iii. Select row.
      iv. Arithmetically modify values in that selected row (eg. clicking custom button outside table)

      Now I would expect the same line/items will remain selected and moved to the appropriate position but the selection changes to more/less RANDOM.

      Without sorting and when is the line not being moved (do yo sorting) it works fine.

      Attachments

        1. original_selection.png
          original_selection.png
          31 kB
        2. random_selection.png
          random_selection.png
          31 kB
        3. TableViewMagic.tar.gz
          2 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            libor@tomsik.eu Libor Tomsik
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes