WebEngineView: Avoid zoom in touch devices

  • Hi,

    I have a WebEngineView in a QML element, and I need to avoid zooming on touch devices (by using the fingers, I mean). I have a touchscreen with windows 10

    I have not found anything to add in the QML side, so I have tried to add code in the HTML I load (in the <head>):

    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>

    but no success.


  • @Diego-Donate I found the way. I need to add 'style="touch-action: none' in the body header

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.