Is it possible to highlight a row in a treeview?

I tried doing this by trying to make my own QItemDelegate, but I have absolutely no idea how to do it :s