My best guess is: go through WebView document + Javascript: Here's an example from Webcat project (FirstPage.qml):
webview.experimental.evaluateJavaScript("document.body.style.backgroundColor=\"#262626\"; document.body.style.color=\"#FFFFFF\""); https://github.com/llelectronics/webcat/ Check also the webcat/qml/pages/helper/devicePixelRatioHack.js (it creates a query before to injecting the 'hack') B.g. Amilcar 2015-07-29 13:49 GMT+01:00 yurumi <yur...@gmx.de>: > Thanks for the reply! > > Adding webkitwidgets results in: > > Project ERROR: Unknown module(s) in QT: webkitwidgets > > > I tried this before but thought it was some Qt 4.X stuff because of the > error message. So maybe QWidgets *are* permitted? In that case, what would > be an alternative approach? > > Cheers, > Thomas > > > > On 29.07.2015 14:29, Amilcar Santos wrote: > > From docs: > Header: #include <QWebFrame> > qmake: QT += webkitwidgets > Since: Qt 4.4 > Inherits: QObject > > As far as I known, dependencies with QWidgets aren't permitted in Sailfish > OS. > > B.G. > Amilcar > > > 2015-07-28 22:57 GMT+01:00 yurumi <yur...@gmx.de>: >> >> Hi all, >> >> I would like to load a web page and programmatically fill in a username >> and password. One possibility seems to be the usage of >> QWebFrame::findFirstElement(). As mentioned in the Docs, I added "QT += >> webkit" in my .pro and included <QWebFrame>. The result is a compile >> error (fatal error: QWebFrame: No such file or directory). Compiling an >> example for the desktop target works, so I wonder where the problem >> might be. >> >> Any help or suggestions on how to solve the original task is highly >> appreciated! >> >> Cheers, >> Thomas >> _______________________________________________ >> SailfishOS.org Devel mailing list >> To unsubscribe, please send a mail to >> devel-unsubscr...@lists.sailfishos.org > > > > > -- > Amilcar > (djditz in the mix... ;) > > > > _______________________________________________ > SailfishOS.org Devel mailing list > To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org > > > > _______________________________________________ > SailfishOS.org Devel mailing list > To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org -- Amilcar (djditz in the mix... ;) _______________________________________________ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org