Question

I am using QSortFilterProxyModel in QTreeView for exploring all the files and folders of a directory on MAC systems. Its working fine. but my problem is, In my Qtreeview, .app files also behaves like folders. means .app files also have an expansion arrow just like folders. I want to remove this expansion arrow. Thanks.

Was it helpful?

Solution

Detect the property list file and then you know it's a bundle, i.e. MyApp.app/Contents/Info.plist.

See https://developer.apple.com/library/mac/documentation/corefoundation/conceptual/cfbundles/Introduction/Introduction.html

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top