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

List:       pykde
Subject:    [PyKDE] more on the QTableView
From:       basse <basse () kulma ! org>
Date:       2006-08-27 10:32:34
Message-ID: 200608271332.34434.basse () kulma ! org
[Download RAW message or body]


I wrote couple of days ago about slowness of QTableWidget, and got instructed 
that QTableView would be better way to go.. I kind of had that already 
figured out, but the reason why I had sticked with QTableWidget was simply 
because it already had the functionality I needed, and with using QTableView 
I would have to implement lot of that myself. and it seemed very complicated.

anyway, I decided to try .. basic functionality I was able to add with 
QStandardItemModel() as model, but it's not quite enough. 
what about sorting? model seems to have sort() function, but nothing happens 
when I use that. also, I couldn't find sortingEnabled() function anywhere, so 
that my table could be sorted by clicking header.. ?

i looked into QProxyModel() as model, but it just got more and more complex.. 
looks like QProxyModel() can have another model assigned with setModel but.. 
uh, I just don't have enough experience on these views and models..
documentation seems to be mostly C api like, and I don't read C that well.. 

anyone willing to help me out?
or point me to a nice example, or a doc.. ?


thanks.

.b

-- 

http://www.kulma.org :: http://orange.blender.org

_______________________________________________
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