I got a reply from the web engine mailing list, and turns out the answer is when both conditions 2 & 3 are met. Documentation: https://code.google.com/p/chromium/codesearch#chromium/src/content/public/browser/web_contents_observer.h&q=file:web_contents_observer.h function:DidFinishLoad&sq=package:chromium&l=197
@ratwix I have found the solution : for each new connection, dynamicaly create a new WebEngineProfile with offTheRecord and new storage name (needed ?) and assign it to the current WebEngineView
Hi Rahul,
I am looking something similar i.e. logs of Qt framework. Refer https://forum.qt.io/topic/58566/how-to-print-logs-qdebug-qwarning-qcritical-qfatal-of-qt-framework-libraries-itself
Try using --log-level=0. It might work in your case.
Thanks,
Anant Agrawal
have you tried a simple alert from your Qt to Js?
QString jsCode = "alert('helloWorld');";
ui->webView_studio->page()->mainFrame()->documentElement().evaluateJavaScript(jsCode + "; null");
if this works then the problem is the syntax of your javascript inside Qt.
Hi,
Now you can use the following line for a QWebEngineView object :
webview ->page()->profile()->setCachePath("C:/Users/yourUserName/AppCacheFolder");
See you.
evaluateJavaScript is your friend
Exemple of code working with Jquery, replace with javascript code
QString jsToExecute += "$('#login-btn').click(); ";
ui->webView_login->page()->mainFrame()->documentElement().evaluateJavaScript(jsToExecute + "; null" );
Disregard my previous post, cookies policy can be set in the QWebEngineProfile owned by the QWebEnginePage owned by the QWebEngineView, like this: ui->webView->page()->profile()->setPersistentCookiesPolicy(QWebEngineProfile::NoPersistentCookies);
The page pointer remains the same for my purposes, at least.
Hi and welcome to devnet,
If you can reproduce this easily with a minimal compilable example, you should go to the bug report system to see if it's something known. If not please consider opening a new report providing that example and the guidelines to trigger the bug.
Hello.
I just did a Test Deploy on a Windows 10 and a Windows 7 Clean VM Machine. Qt Version is 5.5.0
I know this is about Embedded Linux and around 5 Months old.
But I have the same Problem. It is exactly the same Error Message. Does anybody found a real working Solution yet? The .pak File is in my Application Main Folder. I created a qt.conf and tried the following Settings:
[Paths]
Prefix=<QCoreApplication::applicationDirPath()>
Prefix=<>
Prefix=<\>
Prefix=<&PWD>
Nothing worked so far. I could not find the answer, how to tell Prefix to use the current Directory.
In addition: Has anybody created a BR yet? If not, I can do this.
Thanks
Oliver
EDIT01: Finally I found a way to make it work:
[Paths]
Prefix=.
Time will tell if this will bring up other Bugs, Glitches etc.