Details
-
Bug
-
Resolution: Done
-
Not Evaluated
-
5.14
-
None
-
8ea33db63505cbdbad3d298908211d78a4812519 (qt/qtdeclarative/5.15)
Description
Example:
import QtQuick 2.5 Item { visible: true width: 640 height: 480 ListModel { id : model } Component.onCompleted: { var tempData = { subItems: [] } model.insert(0, tempData) JSON.stringify(model.get(0)) } }
This will crash inside QQmlListModel::QQmlListModel > ListLayout::ListLayout, as orig->m_layout is a nullptr. Why we even end in this codepath is yet to be determined.