[bt-devel] tree keys and Qt4 Model/View architecture

cricketc at gmail.com cricketc at gmail.com
Wed Jun 6 17:23:07 MST 2007


On Thu, Jun 07, 2007 at 01:22:33AM +0300, Eeli Kaikkonen wrote:
> On Wed, 6 Jun 2007, Eeli Kaikkonen wrote:
> > One thing which might make this slow is that it uses data without an
> > item class. Maybe initializing special items with key data would do the
> > trick.
> 
> OK, I learned how to use QTreeWidget. It's much easier, the code is very
> short now. http://iki.fi/eelik/sword/keytreetest2.tar.gz. I just have to
> see if I can get rid of TreeItem in cbooktreechooser.h/cpp completely,
> it would reduce the code some 30%.

QTreeWidget is what I've been using in the mainindex files - seems to
be a decent replacement for KListView... Let me know if I should use
something else, though.

-Benjie



More information about the bt-devel mailing list