QAbstractItemModel::roleNames() allows you to map custom roles name to custom role values.
So you specifiy some integer role values for the data you want to get (usually usign an enum) and then map these values to the strings that you want to use on the QML side.
Cheers,
_
Bookmarks