QWebView clear all cookies



  • Sorry for my many topics

    I have a code
    @view.page()->networkAccessManager()->setCookieJar(0);@
    But this code disable all cookies

    If i try that
    @QList<QNetworkCookie> list;
    view.page()->networkAccessManager()->cookieJar()->setAllCookies(list);@

    I get error C2248: QNetworkCookieJar::setAllCookies: ­Ґў®§¬®¦­® ®Ўа вЁвмбп Є protected з«Ґ­, ®Ўкпў«Ґ­­®¬г ў Є« бᥠ"QNetworkCookieJar"

    How I can clear all cookies correctly?



  • I solved this question used
    @view.page()->networkAccessManager()->setCookieJar(new QNetworkCookieJar());@



  • Also look at method @QWebSettings::clearMemoryCaches()@


Log in to reply
 

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