[PyKDE] Painting one cell of a table

Hans-Peter Jansen hpj at urpla.net
Sun Mar 6 15:55:23 GMT 2005


On Sunday 06 March 2005 03:17, Jorge Godoy wrote:
>
> I'm trying to paint one cell in a table but the result is put on
> the wrong place.  My code is:
>
As always, providing a minimum runable example of your problem does 
help immensely!

Table cell painting is done either in the paintCell method from a 
QTable subclass, or in the paint method from a QTableItem subclass.

Since the former has a minor itch to scratch, see attachment.

Cheers,
Pete
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Colored_Table_Cells.py
Type: text/x-python
Size: 1371 bytes
Desc: not available
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20050306/d5ed4f01/Colored_Table_Cells.py


More information about the PyQt mailing list