I have class:
Qt Code:
  1. class diagSys : public QObject
  2. {
  3. Q_OBJECT
  4. ...
  5. Q_PROPERTY(QList<QObject *> periphList READ periphList NOTIFY sysConfigChanged)
  6. ...
To copy to clipboard, switch view to plain text mode 

periphList is list of objects:
Qt Code:
  1. class BriefBlockInfoObject : public QObject
  2. {
  3. Q_OBJECT
  4.  
  5. Q_PROPERTY(char address READ address WRITE setAddress /*NOTIFY typeChanged*/)
  6. Q_PROPERTY(int id READ id WRITE setId /*NOTIFY textChanged*/)
  7. Q_PROPERTY(QString name READ name WRITE setName /*NOTIFY textChanged*/)
  8. ...
To copy to clipboard, switch view to plain text mode 

I wanna use periphList as model in qml. I export diagSys object:
Qt Code:
  1. view->rootContext()->setContextProperty(QLatin1String("DIAG"),
  2. &diag);
To copy to clipboard, switch view to plain text mode 

From qml I use this:
Qt Code:
  1. Repeater {
  2. ...
  3. model: DIAG.dispList
  4. ...
To copy to clipboard, switch view to plain text mode 
But It causes an error "ReferenceError: Can't find variable: name/address/id"

But if I export like this:
Qt Code:
  1. view->rootContext()->setContextProperty("dispModel",
  2. QVariant::fromValue(diag.dispList()));
To copy to clipboard, switch view to plain text mode 
and use as model dispModel:
Qt Code:
  1. Repeater {
  2. ...
  3. model: dispModel
  4. ...
To copy to clipboard, switch view to plain text mode 
it perfectly works.

How can I use as model property value of object, not object itself?