Attaching a pyqt script where I have created a simple QTreeView with some dummy items.
tree_view.py
This is how it looks on Mac :

This is how it looks on Windows (similar behaviour on Linux also):
Notice that empty rows are being colored on Mac.
Attached a simple C++ app too.