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

TreeView rowDelegate styleData misses an index property

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.5.0 Alpha
    • Fix Version/s: None
    • Component/s: Quick: Controls 1
    • Labels:
      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

              Assignee:
              qt.team.quick.subscriptions Qt Quick and Widgets Team
              Reporter:
              cuke Filippo Cucchetto
              Votes:
              10 Vote for this issue
              Watchers:
              12 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes