PDA

View Full Version : Proxy model with multiple sources



Nightfox
25th August 2010, 08:56
I'm trying to create a proxy model that uses data from several source models. I've searched the web and this forum but I haven't been able to find an example.

My approach is subclassing QAbstractProxyModel and map the QModelIndeces to the right sourcemodel in the mapToSource and mapFromSource functions of the QAbstractProxyModel . Until now it doesn't work properly.

Is there anyone who have had a similar challence? I could need an advise here.

Thanks