Try this.
def PrintInfo(self):
startNode = self.tvFolders.invisibleRootItem()
lists = self.generateList(startNode)
print lists
def generateList(self, node, children=[], path=""):
path = os.path.join(path, node.text(0))
for i in xrange(node.childCount()):
files = self.generateList(node.child(i), children, path)
children.append(path)
return children
Feel free to tell me if I did something wrong, or if it's unclear.
EDIT: Ah, just realised you wanted the elements out of the treeview - the recursive function should be similar, but... sorry about that :/ Ok, after quickly installing pyside, and reading the docs, I've updated this with a version that should work.