[PySide] Moving up a tree

litltbear at gmail.com litltbear at gmail.com
Thu Jan 31 22:54:40 CET 2013


Ok since last email I don't even understand my question, so I don't know
how I expect you to.

Let's try this again.

I am using python, pyside, QT.  I have an GUI that displays some data in a
Tree structure, with drop down arrows.  The structure resembles a file
structure with 'files' and 'subfiles'.  So in the GUI if I click on an item
in the tree structure, I can get it to display the name of the item
selected, but when I try to find it's parent and top parent I can't figure
it out.
Same example as before.
A
    1
        a
        b
    2
B
    3
        c
    4
C
    5
    6
        d
        e

So let's say I click on 'e' in the GUI, I can get it to identify that I
selected 'e', but when I try to get the parents, 6 and C, I get 'd', '6',
'5', 'C', 'B', 'A'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/pyside/attachments/20130131/7779875a/attachment.html>


More information about the PySide mailing list