Native FileDialog (macos, QtQuick.Dialogs 1.3) accesses roles of "outside" model . This happens only when FileDialog component is created inside delegate instantiated by a model that has 1 role. As soon as this model has 2 or more roles, everything works fine.
I found this strange behaviour during development of my own model based on QAbstractListModel, but i was able to simplify it by using simple ListModel in qml.
To demonstrate this behaviour:
2) open file dialog by clicking on a button
3) browse via different directories and choose some file (this is important ! seems like more directories you visit, more errors you get)
4) accept the dialog
5) you see bunch of errors as function cannot be converted into text.
If you used your own model based on QAbstractListModel, you would see how data() is called.
qml code to reproduce: