[Development] Proposal: Deprecate QVector in Qt 6

ekke ekke at ekkes-corner.org
Thu Apr 23 13:20:40 CEST 2020


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



More information about the Development mailing list