[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyKDE] Aligning Text in a Table
From:       Bob Parnes <rparnes () megalink ! net>
Date:       2003-06-30 11:57:05
[Download RAW message or body]

On Sun, Jun 29, 2003 at 09:39:20PM +0200, Simon Edwards wrote:
> * BobTable stores the contents of the cells somewhere. (array of strings if 
> the cells hold strings etc).
> 
> * paintCell() looks up the contents of the cell (i.e. grab it's string 
> contents) and draws the string on the QPainter object.
> 
> * BobTable has a method for changing a cell's contents (i.e. 
> setStuff(row,col,newstring) )
> 
> * setStuff() modifies the internal array of strings (cell contents) and then 
> calls QTable's updateCell(row,col). This tells Qt to repaint (redraw) that 
> cell.
> 
> * When Qt is ready. Qt will call paintCell() for any cells that need 
> repainting.
> 
> For a C++ example of how to do this kind of thing look at Guarddog's 
> checktablelistitem.cpp file:
> 
> http://www.simonzone.com/software/guarddog/
> 
> cheers,
> 
> -- 
> Simon Edwards             | Guarddog Firewall
> simon@simonzone.com       | http://www.simonzone.com/software/
> Nijmegen, The Netherlands | "ZooTV? You made the right choice."
> 
> _______________________________________________
> PyKDE mailing list    PyKDE@mats.imk.fraunhofer.de
> http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

I have it working now, thank you.

-- 
Bob Parnes
rparnes@megalink.net

_______________________________________________
PyKDE mailing list    PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic