Domanda

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.

È stato utile?

Soluzione

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top