You are not taking the "parent" index into consideration when mapping indexes. I don't know what your proxy is supposed to do, so I can't suggest a solution.
You are not taking the "parent" index into consideration when mapping indexes. I don't know what your proxy is supposed to do, so I can't suggest a solution.
Hi wysota,
in the first step I just wanna get my model into the proxy. Later I want to use the proxy to adapt the model. I tried to get the parent in the transformation but didn't succeeded. In the model the Item is used to get the parent, but as far as I understand the proxy concept it is not the right way to work over the items and I don't know how to get the parent over the index in this approach.
thanks,
Patrik
Maybe you should start with QSortFilterProxyModel instead of the abstract one?
Hi wysota,
I made some tests with the QSortFilterProxy but that doesn't fit for the things I want to make
Cheers
And what do you want to make? Looking at your code I see you are trying to do 1-1 mapping and that's exactly what the sort filter proxy does out of the box.
Bookmarks