Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to get Parent and granparentIdx in QtreeView
Qt Enthusiast last edited by
I have QtreeView
I have QModelIndex pointing to C from C QMoldeinx I want to go till A . and select A when I have nodeIdx of C
IIRC, you can navigate the tree up by using the parent method up to the index which has no parent anymore.