[Interest] [Ubuntu-phone] How to reset QML WebView?
Николай Шатохин
n.shatokhin at gmail.com
Mon Jun 2 23:51:43 CEST 2014
No, it doesn't help too :(
And clearing cookies manually
_socialWindow->engine()->networkAccessManager()->cookieJar()->setCookieJar(new
QNetworkCookieJar());
or cache
_socialWindow->engine()->clearComponentCache();
not solve the problem.
It looks like that QML file saves it state and lives between different
instances of QQuickView. How to reset it to initial state after creating
new QQuickView?
2014-06-03 0:44 GMT+03:00 Olivier Tilloy <olivier.tilloy at canonical.com>:
>
>
>
> On Mon, Jun 2, 2014 at 11:32 PM, Николай Шатохин <n.shatokhin at gmail.com>
> wrote:
>
>> You didn't understand. It's not Android. It's Qt and QML
>>
>
> I think I understood, and I don’t think I mentioned Android anywhere (by
> the way Qt and QML also run on android, they’re not mutually exclusive
> technologies).
>
> I was suggesting you try something like that with your QML webview:
>
> import QtQuick 2.0
> import QtWebKit 3.1
> import QtWebKit.experimental 1.0
> WebView {
> experimental.preferences.privateBrowsingEnabled: true
> }
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140603/cb149db6/attachment.html>
More information about the Interest
mailing list