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

TreeView rowDelegate styleData misses an index property

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:

                There are no open Gerrit changes