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

TreeView rowDelegate styleData misses an index property

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.5.0 Alpha
    • Quick: Controls 1
    • None

    Description

      Currently an index property has been added to the itemDelegate in QTBUG-45187.
      Probably this could be also usefull inside the rowDelegate. At least for uniformity.

      In general this could be wrong, given that a single row matches multiple columns and so multiple indexes.
      This is true in the old QtWidgets world. However TableView (and so TreeView too) dropped support for
      models with multiple columns by allowing only a single column with multiple roles.

      This decision implies that exposing an index property in the rowDelegate is still correct.

      Attachments

        Issue Links

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

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              cuke Filippo Cucchetto
              Votes:
              9 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes