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. How to enable zooming on webview iOS
QtWS25 Last Chance

How to enable zooming on webview iOS

Scheduled Pinned Locked Moved QML and Qt Quick
5.5webviewios
2 Posts 2 Posters 1.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.
  • D Offline
    D Offline
    dese
    wrote on last edited by
    #1

    Hi! I am trying to use a webview on iOS (import QtWebView 1.1, WebView {}). It shows up correctly, but I can't zoom on the page using gestures.

    I am using the 5.5 beta now and, if understand this code: https://github.com/qtproject/qtwebview/blob/5.5/src/webview/qwebview_ios.mm correctly, it is supposed to have a gesture recognizer.

    Any hints on how to make this work?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      From a quick look, you might have to add a call to scalesPageToFit and rebuild the module (I haven't tested it though, it's from Apple's documentation here)

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

      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