[PyKDE] Colour a cell in QTableView (PyQt4)

Chris Dunscombe cdunscombe at yahoo.com
Thu Sep 21 11:27:04 BST 2006


Hi,

I'm trying to set the colour of cell in a QTableView, not all cells the same colour. I'm using a
model with a delegate. I've looked at the docs and googled around and can't work out any
reasonable way to do it. In PyQt3 it was fairly easy as I just sub-classed QTable and
re-implemented paintCell.

Any ideas? If possible a short example code snippet would really help as I find it much easier to
work things out if I've got an example to work from.

Thanks very much,

Chris

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 




More information about the PyQt mailing list