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

scrollTo scrolls to wrong place in QListView if rows are hidden

    XMLWordPrintable

Details

    • b0601630dd0ddabfaa3b97d042ee02b981d95988 I01b097bce7f163cdb480a71b763c060cc006fdc7

    Description

      Hide rows in QListView. If currentIndex was in hided row, change it to next visible item (QListView::setCurrentIndex(QModelIndex).
      Call QListView::scrollTo(QModelIndex)
      scrollTo does not take into account the hided rows. It scrolls as all items were visible,thus setting wrong items to visible area.
      Example application added as an attachment where this occurs.

      Attachments

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

        Activity

          People

            stephen.kelly Stephen Kelly (Unused account) (Inactive)
            qtcomsupport Qt Support
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes