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

QItemSelectionModel::hasSelection is inconsistent

    XMLWordPrintable

Details

    • 8
    • 0c2125458a9fdddaf3385b257ba4350da872a1d1 (qt/qtbase/dev) 8eda2c4c57e1f30e49a99d38ff1865397b5749e8 (qt/qtbase/6.2)
    • Qt6_Foundation_Sprint 34, Qt6_Foundation_Sprint 35, Qt6_Foundation_Sprint 37, Qt6_Foundation_Sprint 38

    Description

      Selecting some items and then marking them as unselectable results in a situation where nothing is selected, yet hasSelection() returns true.

      To reproduce, just run unit tests in
      https://codereview.qt-project.org/c/qt/qtbase/+/345534/9

      Attachments

        Issue Links

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

          Activity

            People

              andreasbuhr Andreas Buhr
              andreasbuhr Andreas Buhr
              Vladimir Minenko Vladimir Minenko
              Alex Blasche Alex Blasche
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes