[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: rejigging a listview in place
From: Michael Pyne <mpyne () purinchu ! net>
Date: 2007-03-01 20:29:05
Message-ID: 200703011529.08763.mpyne () purinchu ! net
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
On Thursday 01 March 2007 14:51, Robert Hogan wrote:
> On Thursday 01 March 2007 19:16, Branan Riley wrote:
> > Qt3 or Qt4?
> >
> > In Qt4, you can use the model-view architecture, and just change the
> > model (I think). That's just the sort of thing that the model-view
> > architecture is there for. I don't know how you could do it in Qt3,
> > though.
>
> Qt3 unfortunately.
You could hold the model internally and just update the QListView whenever the
user requests by clearing it and adding the appropriate items. Kind of
simulating model/view if that makes sense.
You could also maintain two different listviews and use a QWidgetStack to
switch between them, though that's probably much more trouble than it's
worth.
You could do the in-place editing on the QListView without trying to replace
it afterwards.
And finally, it may just be quicker (seriously) to simply re-create from the
data source than doing a tree-walk. It depends on the data source and the
algorithm of course.
Regards,
- Michael Pyne
[Attachment #5 (application/pgp-signature)]
>> 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