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

Extended selection only selects 2 items when shift is hold

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 4.6.1
    • 4.6.0
    • Widgets: Itemviews
    • None
    • MS Visual C++ 2008 Express, Windows 7 Ultimate 64 bits, Windows 64 bits Platform SDK
    • 2263a796ac6fc84002ff075eb6cbc67e0ec27802

    Description

      I noticed since Qt 4.6 beta when we create a QListView or QListWidget and there are more items than displayed ones (if widget has 20 items and only 10 are displayed), if we are using ExtendedSelection and we try to select the last items while holding shift key, only 2 items are selected.

      I attached a minimal example (I can't do smaller), by default, the window should display 10 items on the 20 created.

      To reproduce the bug :

      1. go to the end of the QListWidget
      2. click on the last item with left mouse button
      3. press shift key and keep holding it
      4. press the top arrow to select the previous item (shift key must be hold)
      5. repeat step 4 until only 2 items are selected

      If you resize the window to display all items, the bug is not occuring anymore.

      Attachments

        1. main.cpp
          0.3 kB
        2. qabstractitemview.patch
          1 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            goffart Olivier Goffart (closed Nokia identity) (Inactive)
            kervala Cédric OCHS
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes