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

TreeView: TreeView.modelIndex() has the order of row and column swapped

    XMLWordPrintable

Details

    • 46fb84841 (dev), 49cdc5c02 (6.5), 2ce59cad5 (6.4), 6bfc50dcb (dev), 18bc3ca5a (6.4), 9ae047e7e (6.5), aea8c9e09 (dev), 3773ad853 (dev), 3343c57b0 (dev), a8caf1f77 (6.5), 0decb824c (6.5), 0e7f30566 (6.5), 291d3ed0d (6.4), 218b908b6 (dev), 8c56d09bd (6.6)

    Description

      In Qt 6.3, TreeView had a function called modelIndex().
      This function took two arguments: row and column.
      In Qt 6.4, This function was moved into TableView
      (the superclass) instead, since it was both places.
      And in that process (probably because this was done
      in several patches), the order of the arguments got
      swapped, to conform with two other functions in
      TableView that took a column and row as argument.

      But this was a source incompatible change.

      The result is that TreeView in Qt 6.3 has a function
      modelIndex(row, column) that works differently compared
      to Qt 6.4.0. There the signature is modelIndex(column, row).

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-109542
          # Subject Branch Project Status CR V

          Activity

            People

              richard Richard Moe Gustavsen
              richard Richard Moe Gustavsen
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes