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

QListWidget scrolls incorrectly when there are hidden items

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P2: Important
    • None
    • 4.7.0, 5.3.0
    • None
    • Ubuntu 10.10 x86_64, WinXP

    Description

      Compile and run the attached source (or run the Python script, which uses PyQt). The list widget does not exhibit expected behavior when scrolling with the keyboard (arrow keys, PgUp/PgDown, Home/End), instead appearing to jump around randomly.

      However, if the last item is selected and the up arrow key held, the list eventually starts jumping upward by multiples of 9, leading me to believe that the widget is confused about indices when there are hidden items. E.g., when going up from the item labeled 30 to the item labeled 27 (which are the 30th and 27th items inserted but are adjacent in the view because 28 and 29 are hidden) it instead goes up from the 30th visible item to the 27th visible item, thus jumping from the item labeled 90 to the item labeled 81.

      This bug was present in previous versions of Qt at least a few months ago, but I don't know the version numbers.

      Attachments

        1. qttest.cpp
          0.4 kB
        2. qttest.py
          0.4 kB
        3. TestQlist2.py
          0.6 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            mmutz Marc Mutz
            cesium Alan Huang
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes