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

QComboBox: Row selection does not remain selected for the listview after collapsing and reopening the dropdown

    XMLWordPrintable

Details

    Description

      When having a QComboBox with a QTableView in it, and calling

      tableView->setSelectionBehavior(QAbstractItemView::SelectRows);
      tableView->setSelectionMode(QAbstractItemView::SingleSelection);

      to set the model selection mode and behaviour, then when the selection is made, it initially appears to work but when the dropdown is closed and reopened, only a single item (in the first column) remains selected.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            cattell Matthew Cattell (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes