当我点击按钮时,我想让两张卡可翻转,但是我可以把它做成一张,我不知道如何同时做到这一点?
就像这样:
MouseArea { anchors.fill: parent; onClicked:five.flipped = !five.flipped}
答案 0 :(得分:3)
喜欢这个吗?
MouseArea {
anchors.fill: parent
onClicked: {
five.flipped = !five.flipped
six.flipped = !six.flipped
}
}