try myTreeView->setAlternatingRowColors(true);
try myTreeView->setAlternatingRowColors(true);
cool, that works! Completely missed that in the doc. Embarrassing!
Thanks.
Seems to have been a so often reimplemented feature that the trolls put it in there API then.
Right, but now, if I want to go further and highlight a row or a even a cell depending on the content of the row/cell.
How can I do this?
Use different roles from the model. If it's not enough, provide a custom delegate for the view.
Bookmarks