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

QAbstractItemView::SingleSelection does not work as advertized

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • None
    • 5.5.1
    • Widgets: Itemviews
    • None
    • f9f777c40a7d8e5f24bbdf8ee509594a0e38c56a

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes