hi, i have a TreeView with a model. i want to set the background color for the view thru the model. the code is as followings:
def data(self, index, role):
if role == QtCore.Qt.BackgroundRole:
br = QtGui.QBrush()
br.setColor(QtGui.QColor.fromRgb(0))
return br
_______________________________________________
PySide mailing list
[email protected]
http://lists.pyside.org/listinfo/pyside
