Can I fire custom events (for example, clicking a link) for QWebElement? For example, given a QWebElement from the current frame (using QWebKit) for the html ("") tag, I want to programmatically click () this element.
In more complex situations, there are interesting things, for example, how to emit the OnChange event for the html UL element? In this case, I not only select OnChange (), but also set a new element from the enumeration in the role of Current Element (in user behavior there are two steps: 1. Press UL (after this field with extended elements) 2. Select the element)
I already solve this problem for elements using manual (site programmers) wroted attributes such as onclick = ..., onchange = ... etc., using real-time jQuery and its trigger function ( ...).
But the problem with software fire of user events is very important for me, a request for help)
qt qtwebkit qwebelement
Jamon
source share