How can I fill in text (from C++) in an input text field on a web page through QWebEngine?
<p>I would like to wrap a website in <code>QWebEngine</code> so I can adapt input commands using Qt's event filters and perhaps much more. The website in question requires username/email and password, and I would like to make sure I can handle the input of that text on my end, sending the strings to be filled in on the web page, and then programmatically push the login button on the same page.</p>

<p>I found <a href="http://lists.qt-project.org/pipermail/qtwebengine/2016-February/000317.html" rel="noreferrer">this page</a>, suggesting using a <code>QWebChannel</code> and some custom javascript to get this working. I know how to get the info of what element I want to fill in through Firefox' Web Inspector tool, but I have no clue how to</p>

<ol>
<li><p>pass two strings to custom JS code I'd be running through <code>QWebChannel</code> somehow</p></li>
<li><p>actually write the JS code to find a specific element on a website not under my control </p></li>
</ol>

<p>There are no url parameters or some such, and if I look at what the POST request looks like that is sent when I actually press "log in" in the browser, the information is encoded somehow, so replicating the actual sent data doesn't seem feasible at this point.</p>