How to set cookie with QWebview in QML?
问题 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. 回答1: 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: Create an instance