How can i write a text background of my treewidget using QPainter?

I am using QT 4.5...