在这个 qml 代码中:
Component {
id: userdelegate
PictureBox {
...
icon: model.icon
icon.heigth: 50
}
}
PictureBox来自PictureBox.qml系统文件的方式是这样的:
...
Image {
id: icon
...
width: parent.width; height: 150
}
运行qml,我在标题中有错误。我需要使用PictureBox.qml,但我无法更改它。如何覆盖PictureBox.qml图标的默认高度值?