Re: Getting indexes of row's children in treeview



On Wed, Jun 29, 2016 at 1:12 AM, Phil Wolff <adiabat centurylink net> wrote:
If I'm reading your question correctly, you're looking for path.up() and
path.down() to change levels in the tree, and path.next() and path.prev() to
change nodes within a level. Continuing your example and assuming iter
points to row 3,

    cout << path.to_string() << endl; // 3
    path.down();
    cout << path.to_string() << endl; // 3:0
    path.next();
    cout << path.to_string() << endl; // 3:1
    path.down();
    cout << path.to_string() << endl; // 3:1:0

Thank you Phil. That was helpful.

-- 
Kamalpreet Kaur Grewal
Blog: http://kamalpreetgrewal.com/


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]