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

Windows11 style does not show underlying content of index widget.

    XMLWordPrintable

Details

    • Windows

    Description

      When using QAbstractItemView::setIndexWidget() with the windowsvista or Fusion styles, the underlying content remains visible. However, with the Windows11 style, the underlying content is not visible when an index widget is used.

      To reproduce the issue, run the attached example project:

      int main(int argc, char **argv)
      {
          QApplication a(argc, argv);
      
          QStringListModel model;
          model.setStringList({"test"});
          QListView view;
          view.setModel(&model);
          view.setWindowTitle("style: " + a.style()->name());
          view.setIndexWidget(model.index(0, 0), new QWidget);
          view.show();
          return a.exec();
      }
      

      Attachments

        1. styleissue.zip
          3 kB
          Mehdi Belila

        Issue Links

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

          Activity

            People

              wladimir.leuschner Wladimir Leuschner
              mahdi.belila Mehdi Belila
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There is 1 open Gerrit change