I’m going to collecect form inputs on web pages to fill them next time automatically based on input field name.
How to pass selected/howered HTML element data in QtWebkit to qt application?
Like Firebug does.
Qt version: 4.6 / 4.7
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Add some JavaScript to assign a unique ID or class to the element below the mouse pointer and then use the standard selectors with the QWebFrame to locate it.
A more simple solution might be the selector
":hover"but that will give you a whole bunch of elements which you need to filter because the mouse always hovers overHTMLandBODYand all the other elements which are stacked upon each other below your mouse. So if the mouse is over aspanin a paragraph, you will get at leastHTML, BODY, P, SPAN.