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

    • All
    • 96c27eb710a37780e79e09df2ebce1d5e4922c9d

      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

        1. qtbug76423.zip
          3 kB
          Shveta Mittal
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes