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

When I set setForeground for QTreeWidgetItem, setForeground won't take effect if I don't override the stylesheet of QTreeView like this.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P2: Important P2: Important
    • None
    • 6.7.2
    • Widgets: Style Sheets
    • None
    • windows MSVC2019

      When I set setForeground for QTreeWidgetItem, setForeground won't take effect if I don't override the stylesheet of QTreeView like this.
      I have placed the test code in the attachment. Please note, thank you

        1. tesetreewidget.zip
          4.22 MB
          申 昊
        2. screenshot.png
          3 kB
          Christian Ehrlicher
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            swate_h 申 昊
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes