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

QAbstractItemView::SingleSelection does not work as advertized

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • None
    • 5.5.1
    • Widgets: Itemviews
    • None
    • 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

          For Gerrit Dashboard: QTBUG-49217
          # Subject Branch Project Status CR V

          Activity

            People

              tmartsum Thorbjørn Lund Martsum
              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