Hi all, I’ve got a file tree component working quite well. I want to make it a bit better in two ways -
- Only display files of a certain type (for example, only wav files)
- When double clicking, rather than expanding that directory, re-create the file tree with that directory as root.
Honestly I am a bit perplexed as to where to start with either. For the former, I think I need to apply a file filter when the file tree component is getting the list of files, but I’m not sure where this is done. For the latter, I think I need to override the behavior in treeviewitem::itemDoubleClicked(), but I’m not sure what the proper syntax is for “set the root directory to x”. Any tips on where to look? Thanks very much!