TestBase.qml Example File

examples/gamenetwork/GameNetworkTest/qml/TestBase.qml
 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
     // no onclicked handler needed
   }
 }

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support