Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Scroll events from a QWebFrame



  • Is it possible to know when a user has scrolled with a QWebView/QWebPage/QWebFrame?

    I looked at the code a bit, so it appears that QtWebkit doesn't use QAbstractScrollArea which explains why the API looks the way it does.

    Very disheartening in QWebFrame:
    @ Q_PROPERTY(QPoint scrollPosition READ scrollPosition WRITE setScrollPosition)
    @

    Where's the CHANGED ?? :/

    I suppose I can listen for possibly-scroll-inducing-events and see if the scrollbar position changes and do it that way. I'm wondering if there's a better way.



  • So I did solve my problem with event listeners. But still would be nice to do it properly somehow.


Log in to reply