Results 1 to 2 of 2

Thread: WebEngineView: Avoid zoom in touch devices

  1. #1
    Join Date
    Apr 2013
    Posts
    61
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: WebEngineView: Avoid zoom in touch devices

    I found the way. I need to add 'style="touch-action: none' in the body header
    Last edited by ddonate; 21st December 2016 at 11:16.

  2. #2
    Join Date
    Apr 2013
    Posts
    61
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: WebEngineView: Avoid zoom in touch devices

    It seems that my first post text was lost... I said:

    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.

    Thanks,
    Diego

Similar Threads

  1. WebEngineView - highlight issue.
    By ejoshva in forum Newbie
    Replies: 0
    Last Post: 14th July 2015, 12:29
  2. WebEngineView->findText()
    By ejoshva in forum Newbie
    Replies: 3
    Last Post: 17th June 2015, 12:10
  3. Mouseevents on a QwebView or WebEngineView
    By Tinu in forum Qt Programming
    Replies: 5
    Last Post: 8th April 2015, 08:51
  4. Replies: 3
    Last Post: 18th May 2011, 16:56
  5. Replies: 1
    Last Post: 25th March 2011, 11:33

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.