【发布时间】:2014-03-14 04:23:08
【问题描述】:
当我将多张图片放入 ColumnLayout 时,它们会覆盖自己,而我只看到最后一张。
这是我的代码示例:
Rectangle{
width: parent.width
color: "#00ffffff"
height: 370
ColumnLayout{
width : parent.width
spacing : 0
Image {
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter
source: "img/img1.png"
}
Image {
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter
source: "img/img2.png"
}
Image {
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter
source: "img/img3.png"
}
}
}
你知道我怎样才能看到 3 张图片一个在另一个下面吗?
【问题讨论】: