Hello,

I have a c++ class derived from QAbstractListModel which I use as my Datamodel for QML.
It has hundrets of objects in it which I want to access directly in QML.
Using the whole model e.g. in a list ist working.

Qt Code:
  1. ListView {
  2. width: 100; height: 800
  3.  
  4. model: dataSourceModelObject
  5. delegate: Text { text: name + " " + value}
  6. }
To copy to clipboard, switch view to plain text mode 

But I want to access single objects of this ListModel by the ID of the object. Is this possible?

regards