You are not logged in.

1

Monday, April 2nd 2012, 3:20pm

ProxyModel from examples CustomSortFilterModel and SimpleTreeModel only toplevel

Hi all

First of all, am quite a beginner in qt. I try to make different views for the same data.
The dat represents config data like command, value, description.
For that I started reading through Model/View Tutorial and tried the simple tree model. That looks good so far but I would like to have different views now.
I 've tried to use the CustomSortFilter example which allows to use regexp to filter the output. That works pretty good but and now it comes:
I can see only the headers (toplevel). Has anyone an idea how to get the leaf data?
That's actually the only data I would like to show..

I hope that's clear enough explained. ;-)

Thanks in advance for your responses.

Regards,
murgo


update:
--------
I found some helpfull documentation here: http://qt-project.org/forums/viewthread/7782
It also seems that expandAll helps to display also the children. Otherwise I can't access them..

This post has been edited 1 times, last edit by "murgo" (Apr 2nd 2012, 8:32pm)