Reputation: 41347
I want to receive notifications whenever links are clicked or text fields are changed in a Webkit instance in Qt. How can I hook up event listeners to a QWebElement
?
I know I can put some Javascript on each element’s onchange
/ onclick
handler, but I’m looking for a cleaner solution.
Upvotes: 2
Views: 1933
Reputation: 41347
Looks like the only way (as of Qt 4.6) is JavaScript.
According to this TODO list for WebKit, there are plans to add a QWebElement::connectEvent()
method.
Upvotes: 3