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

QListWidgetItem::setForeground() does not work

    XMLWordPrintable

Details

    • Windows
    • 7dc67d989 (dev), 41df8e68c (6.8), c52d0bfb0 (6.7)

    Description

      As stated in title, QListWidgetItem::setForeground() does not have any effect.

      I'm using PyQt6, but I'm sure it's Qt C++ issue,

      because QListWidgetItem::setBackground() works as it should.

      I'm attaching very simple reproduction application.

      When I change PyQt6 to PyQt5 (Qt 5.15) it works as it should.

      PyQt allows to pass QColor, QBrush or QGlobalColor to setForeground(). I tried them all.

      Attachments

        Issue Links

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

          Activity

            People

              wladimir.leuschner Wladimir Leuschner
              piotr_m_pl Piotr Malik
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes