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

List:       kde-devel
Subject:    Re: How I refresh a QTreeView if the model data changes?
From:       "kuddel-fl" <kuddel-fl () gmx ! de>
Date:       2009-12-31 16:40:47
Message-ID: 200912311740.47515.kuddel-fl () gmx ! de
[Download RAW message or body]

Many thanks!

but it's to difficult to log which lines have to removed and which to 
inserted, because the data are stored in another class.
Now I simply call reset(). Maybe it is slow but it works.

Ulrich Weigelt



Am Mittwoch, 30. Dezember 2009 21:38:49 schrieb John Tapsell:
> 2009/12/30 kuddel-fl <kuddel-fl@gmx.de>:
> > Hi!
> >
> > I develop the mail client KShowmail. It looks for new mails on POP3
> > servers and show they in a list.
> >
> > To show the mails I use a QTreeView. The model for this is derived from
> > QAbstractItemModel. The received mails a stored in a mail list object.
> > The model gets all data about received mails live from the mail list. The
> > model doesn't store some data.
> 
> You need to call beginInsertRows and endInsertRows  functions.
> 
> Making a custom model is difficult - expect it to take half a year to get
>  right.
> 
> John
> 
> >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to
> >> unsubscribe <<
> 
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

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