Python Forum
Ideas for creating Qcolumnview from lists - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: GUI (https://python-forum.io/forum-10.html)
+--- Thread: Ideas for creating Qcolumnview from lists (/thread-15985.html)



Ideas for creating Qcolumnview from lists - minasal - Feb-09-2019

Hello,
I have 4 lists, first list has 5 items, and for each item in first list there will be 5 items with this i have 2nd list, and for each item in 2nd list there will be 5 items and with this i have 3rd list, and for each item in 3rd list there will be 5 items and with this i have 4th list. Basically its like tree view, i want to create a Qcolumnview like the one that appears in this video
https://www.youtube.com/watch?v=_jgZwzl6ou4 ,
first column should have my first list items, when i click any one of them i need to get the corresponding 5 items on 2nd list, when i click any item on 2nd column the 3rd column should show the corresponding 5 items and so on. I kind of know how pyqt5 works, but i am unable to achieve this with my lists, any ideas or examples would be helpful


RE: Ideas for creating Qcolumnview from lists - Larz60+ - Feb-09-2019

show what you have tried, and where you think it went wrong.


RE: Ideas for creating Qcolumnview from lists - minasal - Feb-09-2019

i am unable to start with the data i have, its 4 lists with list 1 having 5 values, list 2 having 5 values for each list1 values, list3 having 5 values for each list2 values and so does the list4, i am not sure of how to connect these , could be a dictionary?