Windows 10 - QTableView dows not paint BackGround Color

Frederico Carlos Wilhelms fredcw at gmail.com
Mon May 17 21:42:31 BST 2021


Affects:: PyQt5
Python: 3.9
Windows 10 Pro 32bits

Platform: Windows and Widgets

ONLY on WINDOWS 8.1 / 10 ...
On Linux it works without a problem

When the table checkbox is selected/deselected
there should be a  change  of the Header color;
Even though headerData is called for BackGroundRole ,
and it is set the color does not change. Only happens on Windows

Reproducible : Always


1) What did you do?
Run    SLIP.py,
(every  second level selection on the treeview will do)
expand first item on the treeview,
select first child of the item
-->  this will populate the tableView
** uncheck/check  any checkbox on the tableview
color of the header should turn on yellow/green
according to balance result.

Print messages do assert the fact that event is being called
on Windows

2) What do you expect?
Same behavior on Windows that happens Linux

3) What Happened instead?
Header background color remains unchanged.

Any help/advice is appreciated


Thanks in advance.,

Fred
Área de anexos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20210517/d5d0e820/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CodeAndCaptureExample.zip
Type: application/zip
Size: 290208 bytes
Desc: not available
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20210517/d5d0e820/attachment-0001.zip>


More information about the PyQt mailing list