Is there any way i can specify the role name accessible to the delegate of Repeaters and ListViews at run time? For instance i have the following GenericRepeater {} that I want to reuse. I have lot of QAbstractListModel derived classes in C++. Many of them have different rolenames and different number of roles (if they all had just one role I could have accessed it by mentioning modelData, but moment there are more than one, modelData is no longer provided by Repeaters/ListViews to their delegates).

Here is the Repeater code:

//GenericRepeater.qml
Qt Code:
  1. Column {
  2. property alias m_refModel: objRepeater.model
  3.  
  4. Repeater {
  5. id: objRepeater
  6.  
  7. delegate: Rectangle {
  8. height: 40; width: 200
  9. color: "#000000"
  10. Text {
  11. color: "#ffffff"
  12. anchors.fill: parent
  13. text: model.genericRole //-----(1) What can I write here
  14. }
  15. }
  16. }
  17. }
To copy to clipboard, switch view to plain text mode 
I want to use it in many places as:
//SomeFile.qml
Qt Code:
  1. GenericRepeater { m_refModel: myCppClass0 }
  2. GenericRepeater { m_refModel: myCppClass1 }
To copy to clipboard, switch view to plain text mode 
//SomeOtherFile.qml
Qt Code:
  1. GenericRepeater { m_refModel: myCppClass2 }
To copy to clipboard, switch view to plain text mode 

where myCppClass<n> are objects of classes derived from QAbstractListModel and each of those classes can have any number of roles each arbitarily named. Ofcourse the code will fail at (1) above. How do I use GenericRepeater in SomeFile.qml etc ? Just like I assign various models to GenericRepeater {} can I assign the roles too ? If no, then is there an alternate way to realize this ?