[Qt-interest] Proxy models

Kishore kitts.mailinglists at gmail.com
Mon Aug 23 19:52:53 CEST 2010


I have been working with proxy models lately and am intrigued by their 
complexity.

In short, it seems that most implementations of proxies use a QMap that maps 
beween QPersistantModelIndex's of the source and the proxy. Somehow this seems 
very inefficient o me. Memory consumption would go very high when the number of 
indexes increase. It is not uncommon for say a mail application to have 
several thousands of indexes and maybe 2-3 proxies between the view and the 
actual data.

Is this design really the best way considering speed and memory? I have not 
really seen any other MVC classes for comparison...

I am getting more and more interested in this and am curious to see some other 
MVC architectures! :)
-- 
Cheers!
Kishore

Ps: Maybe i am just bothered by all this as i have models many of whose 
indexes get updated at about 100Hz...



More information about the Qt-interest-old mailing list