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

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
           }
         }
       }
Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded