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

TableView and ListView should get row and column delegates

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • Some future release
    • Quick: Other
    • None

    Description

      ListView has a delegate to render an item, and a highlight delegate to create a highlight for the current item. Normally, the highlight is behind the items, which works well except when you want to use something like alternating row colors. In such cases, you have to give each delegate a background color, which in turn doesn't play nice with the highlight. 

      TableView from QtQuickControls 1 had separate properties to rowDelegate and columnDelegate, that you could use to render a background for a row or a column. I would like to suggest to bring that feature to both ListView and QtQuick.TableView. This would separate the contents of the items in the view from their background, also making it possible to have the highlight move between the this background rowDelegate (and columnDelegate) and the item contents on top. 

      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
              andre André Somers
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes