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

TableView: implement selection support

XMLWordPrintable

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

      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"
          }
      } 

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes