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

Feature Request: No way to revert the background color of headerItems of TableWidget to default depending on style used

    XMLWordPrintable

Details

    • All
    • 96c27eb710a37780e79e09df2ebce1d5e4922c9d

    Description

      It seems that there is no way to revert background colour to default for headers of QTableWidget. Like, if the user is changing color by

      table->verticalHeaderItem(0)->setBackground(QBrush(Qt::red));
      

      then there is no way to revert it to default depending on style.
      setBackground(QBrush()) helps with "Windows" style, but with "Fusion", QBrush() is not helping.

       

      The same applies for QListWidget and QTreeWidget

      Attachments

        Issue Links

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

          Activity

            People

              chehrlic Christian Ehrlicher
              shmittal Shveta Mittal (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes