I am using QWebView in QML. I want to show web site that needs authentication. Data should be passed via standard cookie. Any help? Additional link or example would be great.
Thank in advance.
I am using QWebView in QML. I want to show web site that needs authentication. Data should be passed via standard cookie. Any help? Additional link or example would be great.
Thank in advance.
By default, the default QNetworkAccessManager used by webkit have its own (non-persistent) cookie jar, aka QNetworkCookieJar.
This will handle the sending and receiving of cookies during the life span of a QWebPage.
To keep the same cookie jar across multiple pages, you have to:
Example of a persistent cookie jar saved to settings:
To use: