If we define a custom model with a property of type `QAbstractItemModel *` like that:
and bind it in qml, we get a runtime qml error:
Interesting that if we import quick controls 1 in the qml module:
the problem disappears. Even if don't use the QC1(because we use quick controls 2).
Full minimal example with the problem is attached.
Old related bug(I think it's the same problem) is https://bugreports.qt.io/browse/QTBUG-67294