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

QTableWidget - When first item has the flag "Qt::NoItemFlags" selecting/deselecting of a column does not work

    XMLWordPrintable

Details

    Description

      Clicking on the header of a column starting with an item with "Qt::NoItemFlags" never deselects the items.

      Was working with 4.5.3

      Attached: test case to reproduce

      KW: QTableView, QItemSelectionModel

      Steps to reproduce:

      • Run attached sample
      • Click header "2" to highlight (select) the second column
      • Click header "2" again to remove the selections
      • EXPECTED: Selections are removed
      • ACTUAL: Selections are not removed

      Doing the same steps for Header "1" properly selects/deselects the items.

      Attachments

        1. main.cpp
          0.9 kB
          Nokia Qt Support
        2. patch.diff
          1 kB
          Nokia Qt Support
        3. qtbug18001.zip
          0.9 kB
          Jussi Witick
        4. testcase1.cpp
          1 kB
          Daniel Teske
        5. testcase2.cpp
          2 kB
          Daniel Teske
        For Gerrit Dashboard: QTBUG-18001
        # Subject Branch Project Status CR V

        Activity

          People

            richard Richard Moe Gustavsen
            sanonymous Nokia Qt Support (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes