QML component scope puzzle
问题 Take this code: import QtQuick 1.1 Rectangle { width: 100 height: 100 property color fromColor: "red" property color toColor: "blue" gradient: Gradient { property color fromColor: "yellow" property color toColor: "green" GradientStop { position: 0; color: fromColor } GradientStop { position: 1; color: toColor } } } Why exactly does the Gradient pick its fromColor and toColor properties from the enclosing element? Where is this documented (at least within source code comments, better within