Find the Best Demos and Examples

Check out this quick tour to find the best demos and examples for you, and to see how the Felgo SDK can help you to develop your next app or game!

Qt World Summit Conference App

 import Felgo 3.0
 import QtQuick 2.7

 FlickablePage {
   id: roomPage
   title: room
   property string room

   onPushed: amplitude.logEvent("Show Room",{"title" : title})

   flickable.flickableDirection: Flickable.AutoFlickIfNeeded
   flickable.contentWidth: roomPage.width
   flickable.contentHeight: roomPage.height

   scrollIndicator.visible: false

   PinchArea {
     width: Math.max(flickable.contentWidth, flickable.width)
     height: Math.max(flickable.contentHeight, flickable.height)

     property real initialWidth
     property real initialHeight
     onPinchStarted: {
       initialWidth = flickable.contentWidth
       initialHeight = flickable.contentHeight
     }

     onPinchUpdated: {
       // adjust content pos due to drag
       flickable.contentX += pinch.previousCenter.x - pinch.center.x
       flickable.contentY += pinch.previousCenter.y - pinch.center.y

       // resize content
       flickable.resizeContent(initialWidth * pinch.scale, initialHeight * pinch.scale, pinch.center)
     }

     onPinchFinished: {
       // Move its content within bounds.
       flickable.returnToBounds()
     }

     Rectangle {
       width: flickable.contentWidth
       height: flickable.contentHeight
       color: "white"
       AppImage {
         width: parent.width
         fillMode: AppImage.PreserveAspectFit
         property string fileName: room !== "Agenda" ? "Room " + room + ".png" : "Agenda.jpg"
         source: "../../assets/rooms/" + fileName

         MouseArea {
           anchors.fill: parent
           onDoubleClicked: {
             flickable.contentWidth = roomPage.width
             flickable.contentHeight = roomPage.height
           }
         }
       }