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

Windows11 style does not show underlying content of index widget.

XMLWordPrintable

    • Windows
    • 21f3364c0 (dev), f813496af (6.10), e0b94ca97 (6.9), 373ef23a8 (tqtc/lts-6.8)

      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();
      }
      

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes