I'm using QList in many cases, per ex:
C++:
  QList<QObject*> myList();

QML:
  ListView { ... model: xxx.myList()

C++
  QVector<QObject*> myList();

getting Error from QML ListView: Unknown method return type: QVector<QObject*>

(tested with Qt 5.13.2)

perhaps I misunderstood something or will QML in Qt6 have no problems with QVector(QObject*) ?

ekke

_______________________________________________
Development mailing list
Development@qt-project.org
https://lists.qt-project.org/listinfo/development

Reply via email to