After qt 5.11 release QHeaderView section colors stopped showing in linux. In windows works correctly. Has anyone encountered this problem?
I use QTableView with QHeaderView. Can I override paintSection function and do something to fix this issue ?
After qt 5.11 release QHeaderView section colors stopped showing in linux. In windows works correctly. Has anyone encountered this problem?
I use QTableView with QHeaderView. Can I override paintSection function and do something to fix this issue ?
Copyright © 2021 Jogjafile Inc.
If you're using
QAbstractTableModel
for yourQTableView
- try to overrideIf you do so, you will be able to write into the method body a mechanism of painting background in color you want. Something like this:
This should help.