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

Forums

OverviewFelgo 1 Support › Scaling with MultiTouch

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #6077

    Christian
    Felgo Team

    Hi,

    I’d like to add a function to scale my level by using multi touch pinching gestures in the level editor.

    What’s the best solution to this?
    Can you test the multi touch on desktop system somehow? It’s pretty hard to find a good solution when you have to make a new build every time.

    I tried this in my Level.qml:

        MultiTouchArea {
            anchors.fill: parent
            multiTouch.minimumScale: 0.25
            multiTouch.maximumScale: 1
    
    
            onPositionChanged: {
              //...some other code
            }
            onScaleChanged: {
                level.scale = scale
            }
    
    }

    But it doesn’t seem to be doing anything?

    Furthermore, how can you cancel the onPositionChanged if more than one touch point is registered?

     

    Cheers, Chrisu

    #6078

    Christian
    Felgo Team

    OK i just realized you can use the “target” property of MultiTouchArea…will keep trying.

    Still it would be nice to test this stuff on desktop…

    #6082

    Alex
    Felgo Team

    Hi,

    there also is an Example within the SDK, you can find it here: PathToYourFelgoSDK\Examples\FelgoSDK\MultiDragAndPinch.

    Cheers,
    Alex

Viewing 3 posts - 1 through 3 (of 3 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded