<div dir="ltr"><div><div><div><div><div><div><div><div><div><div>Hi,<br></div>While working on getting text bounds work I discovered that QWebFrame::hitTestContent(QPoint()) hits the outermost element, inside body.<br></div>
<div><br></div><div>Consider the below HTML,<br></div><div><br></div><section><br></div><div><p id="p1">some text...</p><br></div><div><div>...</div><br></div><div><p id="p2">some other text..</p><br>
</div></section><br><br></div>Now we have two QPoints;<br></div>QPoint pt1 => which points somewhere within p1<br></div>QPoint pt2 => which points somewhere within p2<br><br></div>var ht1 = QWebFrame::hitTestContent(pt1);<br>
</div>var ht2 = QWebFrame::hitTestContent(pt2);<br><br></div>Analysing
ht1 & ht2 turns out that both of them point to the section element,
which seems to be a little problem. I'm searching for other
ways to do it. If you have any idea to get it work, please share.<br></div><div><br></div>Cheers,<br>Jaydeep</div>