[Interest] How to reset QML WebView?

Николай Шатохин n.shatokhin at gmail.com
Tue Jun 3 18:28:05 CEST 2014


import QtQuick 2.0
import QtWebKit 3.0
import QtWebKit.experimental 1.0

Item {
    width: 640
    height: 480

    signal closeWindow();

    WebView
    {
        anchors.fill: parent
        url: address
        experimental.preferences.privateBrowsingEnabled: true
    }
}


2014-06-03 19:27 GMT+03:00 Николай Шатохин <n.shatokhin at gmail.com>:

> I just tried it. Not working.
>
>
> 2014-06-03 19:10 GMT+03:00 Jan Kundrát <jkt at flaska.net>:
>
> On Tuesday, 3 June 2014 18:03:32 CEST, Николай Шатохин wrote:
>>
>>> When you start this app you will see white window. Click on window and
>>> you
>>> will see browser with Twitter. Click again and browser will be hide and
>>> destroyed.
>>>
>>
>> As Olivier already told you, activate the private browsing mode. You can
>> only do this from the QML side, *not* from the C++ side.
>>
>> The QML code example you link to just instantiates the stock QML WebView,
>> but does not make any attempt at activating its private browsing mode.
>>
>>
>> With kind regards,
>> Jan
>>
>> --
>> Trojitá, a fast Qt IMAP e-mail client -- http://trojita.flaska.net/
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140603/78dbe187/attachment.html>


More information about the Interest mailing list