Does anyone know of the best way to make a HTTP Post request with payload data
using QWebEngine?
In Qt4, you would do something like:
QNetworkRequest request(url);
request.setHeader(QNetworkRequest::ContentTypeHeader,
"application/x-www-form-urlencoded");
webView->load(request, QNetworkAccessManager::PostOperation,
payloadList.join("&").toLatin1());
QWebEngineView (or related classes) do not seem to have a way to do this.
The only possible solution I’ve found so far includes generating some
javascript to create the POST request and then issuing that with
QWebEnginePage::runJavaScript…
Does anyone have any better ideas?
Thanks!
-Jason
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest