Changing Codes in QGroundControl | After running and building qgourndcontrol
My Code_Change Jeourney to qt :
Text {
id: as
text: qsTr("Ayush Sankrit")
}
1.) Rectangle {
id: tutRect
Layout.fillHeight: true
width: height
color: "red"
Text {
id: as
text: qsTr("Ayush Sankrit")
}
}
2.) Rectangle {
property bool isClicked: false
id: tutRect
Layout.fillHeight: true
width: height
color: isClicked ? "green" : "red"
MouseArea {
anchors.fill: parent
onClicked: {
tutRect.isClicked = !tutRect.isClicked
}
}
}
Comments
Post a Comment