Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Pinch to zoom using PinchHandler and Flickable

Pinch to zoom using PinchHandler and Flickable

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
flickablepinchhandler
1 Posts 1 Posters 1.0k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    daljit97
    wrote on last edited by
    #1

    So I would like to create a simple zoomable image which the user can scale by pinch and I would also like the user to be able to scroll the zoomed image. There are some example on how this can be done (the solutions aren't really clean) with a PinchArea and a Flickable, but I would like to use PinchHandler. I have tried this:

    Flickable{
       id: flickable
       contentWidth: image.width; contentHeight:image.height
       interactive: !pinch.active
    Image{ 
       source:"source.png"; width:500; height:600
       PinchHandler{id: pinch} // I disable rotation
     }
    

    This allows me to zoom the image however, I cannot flick the image when zoomed.
    So I am able

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved