【问题标题】:I want to make two Card to flip at the same time in Qt QML我想让两张卡片在 Qt QML 中同时翻转
【发布时间】:2012-02-13 12:48:54
【问题描述】:

我想在点击按钮时使两张卡片翻转,但我可以制作一张,我不知道如何同时做到这一点? 就像这样:

MouseArea { anchors.fill: parent; onClicked:five.flipped = !five.flipped}

【问题讨论】:

    标签: qt qml


    【解决方案1】:

    像这样?

    MouseArea { 
        anchors.fill: parent
        onClicked: {
            five.flipped = !five.flipped
            six.flipped = !six.flipped
        }
    }
    

    【讨论】:

    • 有人给了我正确的答案,你也一样,非常感谢你
    • 点击此答案附近的复选框,将其选为您问题的官方答案,@Sphinx
    猜你喜欢
    • 2017-04-03
    • 2021-06-19
    • 2021-05-11
    • 1970-01-01
    • 2013-03-19
    • 2015-11-05
    • 2014-01-15
    • 2016-08-31
    • 1970-01-01
    相关资源
    最近更新 更多