Вопрос

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.

Это было полезно?

Решение

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

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top