Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. Does scrollPositionChanged signal for QWebEnginePage actually work?

Does scrollPositionChanged signal for QWebEnginePage actually work?

Scheduled Pinned Locked Moved Solved Qt for Python
2 Posts 1 Posters 295 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.
  • E Offline
    E Offline
    elunomas
    wrote on last edited by
    #1

    I have a QWebEnginePage to which I'm attempting to connect the signal scrollPositionChanged with:

    self.view.page().scrollPositionChanged.connect(self.engine_page_scrolled)
    

    The connect statement doesn't cause any errors. However, when I run the program, the signal never fires, regardless of whether I manually click the scroll bar to move it or change it through qwebengine.scroll.
    While this signal is listed as a signal in the documentation (https://doc.qt.io/Qt-5/qwebenginepage.html#signals), the detailed description of it is conspicuously absent from that page (unlike all the other signals listed), which makes me wonder if it is simply not implemented completely in Qt?

    1 Reply Last reply
    0
    • E Offline
      E Offline
      elunomas
      wrote on last edited by elunomas
      #2

      My problem appears to possibly be related to https://bugreports.qt.io/browse/QTBUG-105842, even though I'm on Windows.
      I did create a minimum reproducible example, and the signal successfully fires with that.

      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