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

QAbstractItemView::SingleSelection does not work as advertized

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.5.1
    • Fix Version/s: None
    • Component/s: Widgets: Itemviews
    • Labels:
      None
    • Commits:
      f9f777c40a7d8e5f24bbdf8ee509594a0e38c56a

      Description

      QAbstractItemView::SingleSelection does say that Ctrl-clicks will not toggle the selection. In Qt 4.8.3 that is indeed the case.

      In Qt 5.5 it does toggle the selection though.

      The attached project demonstrates the behavior. Please click on any item in the QListWidget. Then Ctrl-Click on the same item again.

      In Qt4 the Ctrl-click does nothing. In Qt5 the item gets deselected.

      After reading the documentation I expect the behavior of Qt4.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              tmartsum Thorbjørn Lund Martsum
              Reporter:
              hunger Tobias Hunger
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes