Important: Please read the Qt Code of Conduct -

QWebView: Cookies not working.

  • Hello,

    I'm developing a QtWebKit based application and I'm having the following issue:

    When I load an Url using the load method, like this:


    Cookies work correctly with no problems. However, when
    I load the content using the setHtml method, like this:

    @setHtml(htmlCode, QUrl(";@

    (with the exact same html code)
    The website indicates that cookies aren't enabled in my browser.
    I wonder if this is a known issue, and whether there's a way to have
    cookies working for the setHtml method.

    Thank you,


Log in to reply