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

QListWidgetItem::setForeground() does not work

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes