문제

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