Pergunta

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.

Foi útil?

Solução

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

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top