How to get the html source of a page in Qt 5.4 - qwebengine

  • I'm trying to retrieve the source of a page in the new qwebengine but I don't know what I'm doing wrong:
    @ QString html;
    this->page()->toHtml([&html](const QString &result){ html = result; });

        qDebug() <&lt; html; // is still empty@

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.