OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

PySide6 and how to get all data from QTreeView

  • Thread starter Thread starter Павел Демидович
  • Start date Start date
П

Павел Демидович

Guest
How to get all data from QTreeView, I have many parents and many children in qtreeview, child has values in other columns, how can I get these values in the form {parent: {child: [other columns of childs]}}, you need to get the values of all branches of the tree and display them in a similar format

I'm a complete 0 in pyside6 and pyqt6, I tried to get values by index, it worked, but I couldn't get the values of the entire tree with parents and childs
<p>How to get all data from QTreeView, I have many parents and many children in qtreeview, child has values in other columns, how can I get these values in the form {parent: {child: [other columns of childs]}}, you need to get the values of all branches of the tree and display them in a similar format</p>
<p>I'm a complete 0 in pyside6 and pyqt6, I tried to get values by index, it worked, but I couldn't get the values of the entire tree with parents and childs</p>
 

Latest posts

I
Replies
0
Views
1
impact christian
I
Top