QT / WebKit GUI transfers selected HTML element data to a Qt application

I am going to collect form inputs on web pages to fill them out next time automatically based on the name of the input field.

How to transfer selected / hidden data of an HTML element in QtWebkit to a qt application? Like Firebug.

Qt Version: 4.6 / 4.7

Thank.

+3
source share
1 answer

Add some JavaScript to assign a unique identifier or class to the element under the mouse pointer, and then use standard selectors with a QWebFrame to find it.

":hover", , , HTML BODY , . , span , HTML, BODY, P, SPAN.

+4

Source: https://habr.com/ru/post/1759835/


All Articles