⚠️ Forum Maintenance: Feb 6th, 8am - 14pm (UTC+2)
xcround last edited by
Is it possible to filter a child node only, without showing its parents?
Example (strings used):
In my case, I want to match the strings "cool" for example, It would only show that first Child("cool"), and the second parent("cool"), and its Child("cool"), but not the parent of the first node because it doesn't match the string?
Thanks in advance.
loladiro last edited by
If the first parent isn't displayed how would you (conceptually) want to display the child?
giesbert last edited by
it is not possible. A tree always starts with the parent index unknown (root aof a tree) and the iterates all childs. From thoes their children etc.
If you filter out a parent, it's children will never be met, as the parent is out.
dangelog last edited by
Of course, it's possible to implement a custom proxy model that applies your filter. I just don't think that something like that is already available in Qt.