If statement in QML
问题 Completely new to QT and QML. I'm trying to set the color of a rectangle based on the relationship between the two propery doubles callValue and handRaiseXBB , but I get the error unexpected token if" and expected a qualified name id Could anyone tell me what I am doing wrong? import QtQuick 2.0 Item{ id: hand property double callValue: 0.0 property double handRaiseXBB: 100 property string handCallColor: "green" property string handFoldColor: "grey" Rectangle { anchors.fill: hand if (hand