<div dir="ltr">Hi,<div><br></div><div>Di you get this working? I would need very same functionality (getting webpage content, as dom to <span style="color:rgb(54,53,52);font-family:'Open Sans',sans-serif;font-size:13px;line-height:20px">traversal</span>). It feel strange to me that WebView (SilicaWebView) does not provide access to webpage content? Maybe it has reasons, I don't know as very new to mobile apps.. </div>
<div>I have also tried to find solution by using "<span style="color:rgb(0,85,175);font-style:italic">XMLHttpRequest</span>" javascript way, but did not yet find any. I would like to keep my code purely on QML/Javascript but in this case it's ok to have also C++ solution. I have done a lot C++ but so many years back and certainly not mobile platforms.</div>
<div> </div><div>-Samuli</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014/1/21 Hannes Rantzsch <span dir="ltr"><<a href="mailto:hannes.rantzsch@student.hpi.uni-potsdam.de" target="_blank">hannes.rantzsch@student.hpi.uni-potsdam.de</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Aaron, thank you for your answer.<br>
<br>
I tried QWebFrame, but it says incomplete type. Apparently QWebFrame is<br>
only forward declared in QWebElement (which is available, but on it's<br>
own of no use I guess). Or am I simply missing some #include?<br>
<br>
Any ideas?<br>
<br>
<br>
Thanks,<br>
<br>
Hannes<br>
<div class="im HOEnZb"><br>
<br>
On 01/21/2014 02:37 AM, Aaron McCarthy wrote:<br>
> Hi,<br>
><br>
> On Mon, 20 Jan 2014 23:27:02 Hannes Rantzsch wrote:<br>
>> I'm trying to get the content of a website. Since SilicaWebView doesn't<br>
>> seem to provide this, I want to write a C++ class that does. QWebView<br>
>> from QtWebKit should be able to do this (this example is actually<br>
>> perfect:<br>
>> <a href="http://qt-project.org/doc/qt-5/qtwebkitexamples-webkitwidgets-domtraversal-e" target="_blank">http://qt-project.org/doc/qt-5/qtwebkitexamples-webkitwidgets-domtraversal-e</a><br>
>> xample.html).<br>
>><br>
>> However, I cannot include QWebView (no such file [...]) and including<br>
>> "QtWebKit/QtWebKit" does not give me the QWebView either.<br>
>><br>
>> I did add "QT += webkit" to my .pro-file.<br>
>><br>
>> What am I missing?<br>
> QWebPage is in WebKit widgets.<br>
><br>
> QT += webkitwidgets<br>
><br>
> But widgets aren't supported.<br>
><br>
> If you don't need to display the web page, you can use QWebFrame and follow<br>
> the example you linked to from there.<br>
><br>
> Cheers,<br>
><br>
<br>
</div><div class="HOEnZb"><div class="h5">_______________________________________________<br>
SailfishOS.org Devel mailing list<br>
</div></div></blockquote></div><br></div>