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

GameNetworkExample

 import Felgo 3.0 // for SimpleButton
 import QtQuick 2.0

 Item {
   id: testBase
   width: parent.width
   height: scene.testHeight
   anchors.top: testRow.bottom
   anchors.topMargin: 3
   //spacing: 2

   SimpleButton {
     color: "red"
     opacity: 0.5
     // put it on top of other child elements of the tests
     z:10
     anchors.right: parent.right

     text: "loading"

     // show this rect when this scene is visible and currently waiting for a response
     visible: testBase.visible && gameNetwork.waitingForResponse
     // no onclicked handler needed
   }

   SimpleButton {
     color: "red"
     opacity: 0.5
     // put it on top of other child elements of the tests
     z:10
     anchors.right: parent.right
     anchors.bottom: parent.bottom

     text: "ConnError"

     // show this rect when there is a connectionError
     visible: gameNetwork.connectionError
Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded