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

Automatic ListView content positioning while disabled

    XMLWordPrintable

Details

    • 60194389c (dev), 8d28f9811 (6.7)

    Description

      Note: the reproduction is possible with attached qml file: main_list_viewport_wrong_adjustment.qml

      Conditions:

      • raw QML ListView component, with enough items to scroll them out of viewport
      • ListView properties are set to:
                highlightFollowsCurrentItem: false
                snapMode: ListView.NoSnap
                highlightRangeMode: ListView.NoHighlightRange
      • item of ListView is made current (by setting listView.currentIndex = model.index) by clicking it.

      Actions:

      • Scroll with touch/mouse the list until some
        • unselected item
        • will be partially hidden behind top border of the list
      • Click on this partially hidden top item

      Observed:

      • List adjusts content position to make new current item to be positioned exactly at the top edge of viewport.

      Expected:

      • No content position adjustment happens, due to mentioned properties values.

       

      Note:

      • When analogous action applied to the bottom item, no content position adjustment happens, so with bottom item ListView behaves correctly.

       

      Please, see the attached example application file: main_list_viewport_wrong_adjustment.qml

      Attachments

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

        Activity

          People

            fabiankosmale Fabian Kosmale
            agulyaev Artem Gulyaev
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes