Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

Stack With Friends Demo

 import QtQuick 2.0
 import Felgo 3.0

 Item {
   property alias text: label.text

   signal clicked
   signal pressAndHold

   property bool active: false
   property bool clickable: true

   width: label.width
   height: 39

   Text {
     id: label
     anchors.verticalCenter: parent.verticalCenter
     // grey if it is not clickable, green if it is active, black by default
     color: parent.clickable ? parent.active ? "#267920" : "black" : "#555555"
     font.family: fontHUD.name

   MouseArea {
     anchors.fill: parent
     onClicked: parent.clicked()
     enabled: parent.clickable
Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded