QML scope: property binding in child object failing
问题 I'm new to QML and ran into a scope problem while going a button tutorial. I solved it but I don't understand why the code didn't work in the first place: Problem The following code gives Runtime reference errors when the button is hovered over: main_broken.qml import QtQuick 2.0 import QtQuick.Controls 1.1 ApplicationWindow { visible: true width: 640 height: 480 title: qsTr("Button Tester") Rectangle { id: simpleButton height: 75 width: 150 property color buttonColor: "light blue" property