[Qt-interest] QAggregatingProxyModel ?
Kishore
kitts.mailinglists at gmail.com
Thu Jun 24 14:23:35 CEST 2010
On Wednesday 23 Jun 2010 9:00:02 pm Stephen Kelly wrote:
> Kishore wrote:
> > Once the dev days presentations mentions a QAggregatingProxyModel class
> > that could be part of standard Qt (4.5 release as i recall). Surely, it
> > was not included in the release. Sadly, the only reference to the class
> > name returned by google is from that presentation
> > (http://www.slideshare.net/mariusbu/practical-model-view-programming)
> >
> > I am now in need of such a class. What are my options?
>
> Option 1) Ask Qt to release it somewhere. They might put it on labs if you
> reach the right people.
Who would be the right one? Hmmm i guess there might be the email id the
presentation i linked. I'll check.
> Option 2) If LGPL works for you you can use the one that I designed but
> haven't fully written yet in kdelibs.
That works fine for me! I'll look. Whats the file called?
> Option 3) Write your own. A potentially non-trivial amount of work and
> learning if you haven't implemented a proxy model before. Don't subclass
> QAbstractProxyModel by the way. Subclass QAbstractItemModel instead.
Thats the first thing that struck me when i looked through the API of
QAbstractItemModel. API seems to assume that there is only one model that it
proxies. API like setSourceModel() and sourceModel().
--
Cheers!
Kishore
More information about the Qt-interest-old
mailing list