Qt World Summit: Submit your Presentation

[SOLVED] Scroll and Zoom on Android and iOS platform ?

  • Hello,

    I would like to add the possibility to slide the screen and to zoom in/out with finger gestures, but I don't know how to do it?

    I know about ScrollArea, but it's best for computer.On Android it display a scrollbar on the edge of the screen and it doesn't recognize the finger gesture, only the bar and the area without widgets are affected by touching...

    Is there an element property to modify or is it programmable?

    I'm using a QWidget and a QGridLayout

    Thanks for your help!

  • Lifetime Qt Champion


    IIRC since you are using widgets, you should take a look at QGestureRecognizer and friends

    Hope it helps

  • Hi,
    Thanks, I'll try with this and I keep you aware

    thank you for help

  • So, finally I used a QGraphicsView and a QGraphicsScene in which I add my QWidget and now I can use the scroll (with the dragMode). I didn't implemented the zoom yet, but it I'm working on.

    Thanks a lot for your help