Hello!!I have a database and I want to display its data into a QTreeView in PyQt.The database's column has file paths.I have a problem in filling this treeview with data because it's a database and I'm not sure if it is like working with txt files and because it is file paths.I heard that I should use proxy models,but I am not sure how to do this or if this is the right thing to do and I can't find any relevant examples...I would appreciate any help.Thank you in advance!
Jump to Post
The only different with working with a database and tree view is the heirarchy in the database needs to be interpreted.
Normally, this comes in the form of a parent child relationship. If you recurse through that you should be able to build your tree view.
All 4 RepliesReply to this topic
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.