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

TableView: implement selection support

    XMLWordPrintable

Details

    • Task
    • Resolution: Duplicate
    • P2: Important
    • None
    • None
    • Quick: Other
    • None

    Description

      Implement support for selecting cells in the table using mouse/touch etc.

      • Should this be factored out into a separate component?
      • Support QItemSelectionModel
      • Implement API for querying which cell is under a specific point (mouse/touch)
      • Returning delegate items directly from an API is discouraged, since they can be reused/destroyed.

       

      API suggestion:

      TableView {
          selectionModel: ItemSelectionModel { }
          selectionDelegate: RubberBand { }
          delegate: Rectangle {
              color: TableView.isSelected ? "green" : "white"
          }
      } 

      Attachments

        Issue Links

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

          Activity

            People

              richard Richard Moe Gustavsen
              richard Richard Moe Gustavsen
              Votes:
              4 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes