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

add real-time update of tableview.selection.count value

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P3: Somewhat important
    • Some future release
    • 5.2.0
    • Quick: Controls 1
    • None
    • Windows 7 64 bit.

    Description

      http://qt-project.org/doc/qt-5/qml-qtquick-controls-tableview.html#selection-prop

      The value of the count property of the selection property of a TableView, only gets updated on the clicking or release of a mouse click after selecting rows. It would be convenient to have real-time updating of that value for a truly dynamic 'items selected' status message (for example in a status bar at the bottom of the table). Thus the following code to achieve that is currently not enough.
      Text {
      text: someTableView.selection.count
      }
      This seems to be related to the fact that the selectionChanged()signal only gets fired when clicking or releasing the mouse click.

      P.S.: the selectionMode: property has a red squiggle beneath it. It works though.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            peacebeuponqt Jambino Primpino
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes