How to capture HTML document mouse events?



  • Hello, I am new to QT and Qt WebKit. I am trying to port my .Net application that use MS WebBrowser control to QT. With MS WebBrowser component I was able to subscribe to HTML document mouse events but I cannot find similar functionality in the QT WebKit.
    Could you point me to a sample that handles mouse events using Qt WebKit?
    Thank you,
    Vladimir



  • I don't think you can in an easy way -- you should install (f.i. via jQuery or similar) javascript functions for the events you're interested into, then make those functions call slots of some QObject object you register inside the page. See also



  • Thank you for your prompt respond. That is exactly what I need.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.