Tony the Pony
Tony the Pony

Reputation: 41347

Qt: How can I receive events fired by QWebElement objects?

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

Answers (1)

Tony the Pony
Tony the Pony

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

Related Questions