Use QListWidget frontend with QTreeWidget backend PyQt

55 Views Asked by At

I need to have a widget for displaying files and folders in a grid like scrollable container... So I need the view given by ListWidget, with the filesystem architecture of TreeWidget. How should I implement this?

I thought about using the FileSysteModel but it works only with local files and my filesystem will be virtual.

1

There are 1 best solutions below

0
Bilal Can On

You can have a look at this video https://www.youtube.com/watch?v=92biLZST6Vg This is very helpful and the exact answer. This is just in cpp but the implementation should be 90% the same.