[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:       John Tapsell <johnflux () gmail ! com>
Date:       2009-12-30 20:38:49
Message-ID: 43d8ce650912301238j7343e0bfk4c5c1d092c7363cc () mail ! gmail ! com
[Download RAW message or body]

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 <<
[prev in list] [next in list] [prev in thread] [next in thread] 

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