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

Problem with selection in QTableWidget!

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4: Low P4: Low
    • None
    • 4.7.4, 4.8.1, 4.8.4, 5.5.0
    • Widgets: Itemviews
    • None
    • Windows 7 x64 (msvc2010) (QT static build x64)

      In all cases of selection (by mouse or keyboard) in QTableWidget, at first currentIndex() change,
      then selectedRows() change.
      But there is another case when this sequence dont work:
      At first selectedRows() change, then currentIndex() change.
      Example:
      selecting only by mouse several elements on QTableWidget

      How to:
      example show currentRow() when selection changed
      only in one case currentRow() returns previous value
      when you selecting only by mouse several elements on QTableWidget

        1. BugInSelection.zip
          5 kB
          Arsen Arutunyan
        2. bugscr.jpg
          40 kB
          Arsen Arutunyan
        3. qabstractitemview.zip
          31 kB
          Arsen Arutunyan
        4. Selection.patch
          1.0 kB
          Arsen Arutunyan
        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
            arsen Arsen Arutunyan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes