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

Hiding Items (QListView::setRowHidden) in QComboBox does not work with Qt 6.7.0

    XMLWordPrintable

Details

    • Windows

    Description

      We have a layout that contains multiple QComboBoxes. Whenever one of these QComboBoxes already selects an available item, all the other QComboBoxes are supposed to hide it, to make a unique selection possible. Therefore, the setRowHidden() function of the QListView of the QComboBox::view() is used.

      This worked fine on QT5.15 on both windows 11 and linux (Debain 11 and 12). After upgrading to QT6 we noticed that this functionality does not work correctly on windows 11 with QT 6.7 anymore with neither windows style nor the Fusion style.
      While setRowHidden(idx, true) seems to be called correctly and isRowHidden(idx) returns true, the item does not disappear from the list and is still selectable.
      It works fine on Windows 11 with QT6.5 and Debian 12 with QT6.4 (other versions have not been tested).

       

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            telina telina
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes