Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QtWebEngine
  4. How to disable scrolling past the top/bottom/left/right in a QWebEngineView rendered page ?
Forum Updated to NodeBB v4.3 + New Features

How to disable scrolling past the top/bottom/left/right in a QWebEngineView rendered page ?

Scheduled Pinned Locked Moved Unsolved QtWebEngine
10 Posts 6 Posters 2.2k Views 1 Watching
  • 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.
  • G Offline
    G Offline
    g_montel
    wrote on last edited by
    #1

    Hello

    Using QT 5.11 installed with homebrew on Mac OS 10.12.6

    Using a QWebEngineView, there's an annoying scrolling when going up the top corner of the page, or down the bottom of the page, etc.

    Example :
    0_1533741671393_doc_393css.gif

    Is there a setting to remove that slow scrolling past the borders of the page ?

    Thanks !

    Geoffroy

    1 Reply Last reply
    0
    • G Offline
      G Offline
      g_montel
      wrote on last edited by
      #2

      Any clue anyone ?
      I haven't found any solution to that problem yet.

      Thanks in advance !

      1 Reply Last reply
      0
      • L Offline
        L Offline
        larime
        wrote on last edited by
        #3

        Hallo,

        do you have a solution? i have the same problem and i use Qt5.6.2

        Thank you

        1 Reply Last reply
        0
        • G Offline
          G Offline
          g_montel
          wrote on last edited by
          #4

          Unfortunately no, I haven't found any solution...

          1 Reply Last reply
          0
          • T Offline
            T Offline
            TheWanderingCoel
            wrote on last edited by
            #5

            Hi There:
            Do you find out the solution? I'm facing the same problem with Qt 5.13.1.

            Cheers

            1 Reply Last reply
            0
            • G Offline
              G Offline
              g_montel
              wrote on last edited by
              #6

              No :( I haven't found any solution, living with it at the moment...

              1 Reply Last reply
              0
              • A Offline
                A Offline
                amithooda
                wrote on last edited by
                #7

                Did anyone get hold of this one ? I am also facing the same issue.

                1 Reply Last reply
                0
                • G Offline
                  G Offline
                  g_montel
                  wrote on last edited by
                  #8

                  Nope, unfortunately....

                  1 Reply Last reply
                  0
                  • C Offline
                    C Offline
                    cn_will_unified
                    wrote on last edited by cn_will_unified
                    #9

                    Hi There:
                    I have the same problem and I use Qt5.14.2 /macOS Monterey 12.1.
                    I found a solution ,I set the html css property

                    overscroll-behavior: none;
                    

                    that work for me.hope it helpful.

                    1 Reply Last reply
                    0
                    • M Offline
                      M Offline
                      Matty from the Cape
                      wrote on last edited by Matty from the Cape
                      #10

                      This worked for me:

                      web_view.page().settings().setAttribute(PySide6.QWebEngineCore.QWebEngineSettings.WebAttribute.ShowScrollBars,False)
                      
                      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