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

When dataChanged() is emitted with indexes indicating a range, then the whole viewport will be updated

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Invalid
    • Affects Version/s: 4.6.3, 4.7.0
    • Fix Version/s: None
    • Component/s: Widgets: Itemviews
    • Labels:
      None

      Description

      When dataChanged() is emitted with indexes indicating a range, then the whole viewport will be updated as the range is not taken into consideration. If only a single index is covered by the "range" indicated in the emitted signal then it only updates that index.

      Attached is an example that reproduces the problem, the signal is emitted with only rows 2-3 in the range yet all of the rows are updated. The reason it shows a QListView and a QTreeView is if you change it to emit only a single index in the range, then QTreeView works correctly, whereas QListView still doesn't.

        Attachments

          Issue Links

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

            Activity

              People

              • Assignee:
                vfm Thierry Bastian (closed Nokia identity) (Inactive)
                Reporter:
                anshaw Andy Shaw (closed Nokia identity) (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes