How to get website content from QWebEnginePage?
<p>I installed the newest version of Qt (on Webkit, Qt5.2 had WTFcrash). I try to get content of my website when the page is loaded (and it is):</p>

<pre><code>QString sHtml;
view.page()-&gt;toHtml([&amp;](const QString&amp; result){sHtml = result;qDebug() &lt;&lt; result;});
</code></pre>

<p>But <code>sHtml</code> is empty, and debug not called. What am I doing wrong?</p>