Important: Please read the Qt Code of Conduct -

how to disable pinch/zoom resizing of full screen browser?

  • How can I prevent pinch/zoom from resizing a fullscreen browser? I'd like to disable both operations so the browser always occupies the full screen (like a kiosk) and pinch/zoom only work within web pages that support them such as map sites. With the code below, a pinch temporarily scales the display then it returns to full screen and a zoom operation scales and stays that way. Any suggestions on how to prevent these operations?

    import QtQuick 2.0
    import QtWebKit 3.0
    import QtQuick.Controls 1.3
    import QtWebKit.experimental 1.0
    ApplicationWindow {
    visible: true
    visibility: "Maximized"
    WebView {
         anchors.fill: parent
         experimental.preferredMinimumContentsWidth: 800
         experimental.preferences.fullScreenEnabled: true
         experimental.preferences.developerExtrasEnabled: true
         url: "file:///path/to/index.html"

  • Moderators

    Hi @elkhunter,
    Since WebView uses Flickable you can use its interactive property. Try setting it to false.

  • Thanks, that fixed the issue.

  • Moderators

    @elkhunter Glad to hear that :)
    You can mark the post as solved by editing the post title and prepending [Solved].

  • How do I edit the original post? I dont see that option listed anywhere on the page, just an option to reply.

Log in to reply