← Back to team overview

ubuntu-phone team mailing list archive

Re: [Interest] How to reset QML WebView?

 

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@xxxxxxxxx>:

> I just tried it. Not working.
>
>
> 2014-06-03 19:10 GMT+03:00 Jan Kundrát <jkt@xxxxxxxxxx>:
>
> 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/
>>
>
>

Follow ups

References