Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. [SOLVED] Scroll and Zoom on Android and iOS platform ?

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

Scheduled Pinned Locked Moved Mobile and Embedded
androidiosmobileqwidgetscrollareascrollingzoom
4 Posts 2 Posters 2.3k 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.
  • N Offline
    N Offline
    NGV1
    wrote on 18 May 2015, 13:47 last edited by NGV1
    #1

    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!

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 18 May 2015, 22:44 last edited by
      #2

      Hi,

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

      Hope it helps

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      N 1 Reply Last reply 19 May 2015, 09:12
      0
      • S SGaist
        18 May 2015, 22:44

        Hi,

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

        Hope it helps

        N Offline
        N Offline
        NGV1
        wrote on 19 May 2015, 09:12 last edited by
        #3

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

        thank you for help

        1 Reply Last reply
        0
        • N Offline
          N Offline
          NGV1
          wrote on 21 May 2015, 13:53 last edited by NGV1
          #4

          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

          1 Reply Last reply
          0

          3/4

          19 May 2015, 09:12

          • Login

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