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

Popular posts from this blog

Generating a signed apk from Qt Creator

How make Signed Firmware from official Ardupilot using Cryptography

Drone Jamming & Detecting System :