QML ListView 报错:Component 未定义内容
这段代码中,Component没有定义具体的内容,所以会报错。需要在Component中添加具体的内容,例如:
Component {
id: idDatageteLHeartRoomListview
Text {
text: model.text
}
}
这样就可以在ListView中显示每个元素的文本内容。
原文地址: https://www.cveoy.top/t/topic/nYUe 著作权归作者所有。请勿转载和采集!