Details
Description
Consider having the following component (IconLowbeam) which contains the state:
import QtQuick 2.0 import Qt.SafeRenderer 2.0 SafePicture { id: iconLowBeam width: 30 height: 30 color: "yellow" fillColor: "black" source: "iso_grs_7000_4_0083.dat" states: [ State { name: "ON" PropertyChanges { target: iconLowBeam color: "green" fillColor: "black" } }, State { name: "OFF" PropertyChanges { target: iconLowBeam color: "red" fillColor: "black" } } ] }
If the IconLowBeam id is changed (beamIcon2) state change links to iconLowBeam.
IconLowBeam {
id: beamIcon
objectName: "beamIcon"
x: 128
y: 0
width: 128
height: 128
}