[Qt-interest] how to get element clicked by mouse in qt webkit?
Li Li
fancyerii at gmail.com
Fri Nov 19 12:35:15 CET 2010
hi
I want to interact with user in qt webkit. If user click on a
element such as a <div>, I need to know that this div is clicked.
I searched the web and found 2 solutions
1, use javascript. when page loaded, assign an unique id for every
element and and onclicked js events for it
2, use mouse clicked position. recursively travese the dom tree and
find which element contains this point
method 1 need deal with javascript and method 2 seems not very efficenint.
Is there any API providing any quick solution?
Thanks.
More information about the Qt-interest-old
mailing list