const QModelIndex &child = index.child(i, 0) is deprecated
Solved
General and Desktop
-
how can I replace it?
-
@vale88 Explained here: https://doc.qt.io/qt-5/qmodelindex-obsolete.html
-
Use QAbstractItemModel::index() instead.
So, something like:
const QModelIndex &child = model.index(i, 0, index);