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

QAbstractItemView::SingleSelection no way to interactively deselect item

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P4: Low
    • 5.1.0 Beta 1
    • 4.6.2
    • Widgets: Itemviews
    • None
    • GNU/Linux Fedora release 8 (Werewolf)
    • 28a21d98ef8d880a6dd86ee19dd803424bb5eae1

    Description

      When an itemview has selectionMode set to SingleSelection, the view initially has no selection. As soon as a selection is made, there is no way to interactively (with mouse/keyboard) deselect that item. Only by calling clearSelection() can this be done.

      It should be possible for the user to clear the selection by clicking in an empty area of the viewport or by ctrl+clicking the selected item, just as in ExtendedSelection mode.

      Attachments

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

        Activity

          People

            tmartsum Thorbjørn Lund Martsum
            jugdish Jugdish
            Votes:
            7 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes