How to get coordinates of selected word on QWebView

35 Views Asked by At

mighty All,

I have selected the word by QWebPage::SelectNextWord(). I just exec the code: ui->webView->page()->triggerAction(QWebPage::SelectNextWord);

The question is: how to define coordinates of blue rect of selected word, any method which allows to solve this (Qt, Windows MDN, jscript,...)

Does anybody know how to do this?

Regards, Radmir

1

There are 1 best solutions below

0
user3899825 On

MDN Api allows to write small script, that solves the task. Thanks, the question is closed.

Radmir