On 22.11.07 13:54:58, Alexandre Badez wrote: > By the way, is there a better than re implement the complete paint method ? > I mean, I just want to change the color of the line according to the "type" > of the node (but not in every view).
Sure, either let the model provide the color or change the palette in the styleoptions you get and let QItemDelegate::paint() do the rest with the changed style option. Andreas -- A gift of a flower will soon be made to you. _______________________________________________ PyQt mailing list [email protected] http://www.riverbankcomputing.com/mailman/listinfo/pyqt
