Webengine example fail with "Unknown module(s) in QT: webengine"
-
@PSI_lbc said in Windows 7 Webengine example fail with "Unknown module(s) in QT: webengine":
Docs say it's there but it isn't. This is after a fresh install of 5.8,5.7 MinGW53_32 and 5.6 MinGW49_32
You need to install Qt 5.8.0 and extract QtWebKit binaries that you can download from link that I've posted above.
@PSI_lbc said in Windows 7 Webengine example fail with "Unknown module(s) in QT: webengine":
Do you know if the 5.8/Webkit binaries support a mix of HTML and JavaScript on the same page?
Of course, yes!
-
@xeoshow
Hi
I think its still alpha
https://github.com/annulen/webkit/releases -
@mrjj said in Windows 7 Webengine example fail with "Unknown module(s) in QT: webengine":
@xeoshow
Hi
I think its still alpha
https://github.com/annulen/webkit/releasesI am still using the qt 5.5.1 mingw version, and using the default webview in that QT version. One BIG problem I met is memory leak seems still in qt 5.5.1 mingw version ...
Is the memory leak problem resolved in the qtwebkit-tp5-qt58-mingw530-x86.zip or qtwebkit-5.212.0_alpha2-qt59-mingw530-x86.zip from https://github.com/annulen/webkit/releases ?
-
I just tried qt-opensource-windows-x86-mingw530-5.8.0.exe and qtwebkit-tp5-qt58-mingw530-x86.zip, For one of my project works well with qt 5.5.1 mingw, now got below error when compiling, anything I should modify? Or anything missing?
Thanks a lot!
Best regards, Jason
D:/Qt/Qt5.8.0/Tools/mingw530_32/bin/../lib/gcc/i686-w64-mingw32/5.3.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lQt5WebKitWidgetsd D:/Qt/Qt5.8.0/Tools/mingw530_32/bin/../lib/gcc/i686-w64-mingw32/5.3.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lQt5WebKitd collect2.exe: error: ld returned 1 exit status Makefile.Debug:77: recipe for target 'debug/xc-browser.exe' failed mingw32-make[1]: Leaving directory 'D:/gitrepository/xc/build-xc-browser-desktop-Desktop_Qt_5_8_0_MinGW_32bit-Debug' mingw32-make[1]: *** [debug/xc-browser.exe] Error 1 Makefile:34: recipe for target 'debug' failed mingw32-make: *** [debug] Error 2 13:35:42: Process"D:\Qt\Qt5.8.0\Tools\mingw530_32\bin\mingw32-make.exe"exit,exit code 2 。 Error while building/deploying project xc-browser-desktop (kit: Desktop Qt 5.8.0 MinGW 32bit) When executing step "Make" 13:35:42: Elapsed time: 00:34.
-
What I am talking about the memory leak, is something as below:
https://forum.qt.io/topic/10832/memory-size-increases-per-page-load/13
-
@xeoshow said in Windows 7 Webengine example fail with "Unknown module(s) in QT: webengine":
Is the memory leak problem resolved in the qtwebkit-tp5-qt58-mingw530-x86.zip or qtwebkit-5.212.0_alpha2-qt59-mingw530-x86.zip
Please try it out, IIRC I couldn't reproduce that issue.
Also, don't use
QWebSettings::setObjectCacheCapacities(0,0,0)
, this indeed was causing leaks in the old versions, and WebKit isn't really tuned or even tested to operate with no cache at all. -
@Konstantin-Tokarev said in Windows 7 Webengine example fail with "Unknown module(s) in QT: webengine":
@PSI_lbc said in Windows 7 Webengine example fail with "Unknown module(s) in QT: webengine":
Docs say it's there but it isn't. This is after a fresh install of 5.8,5.7 MinGW53_32 and 5.6 MinGW49_32
You need to install Qt 5.8.0 and extract QtWebKit binaries that you can download from link that I've posted above.
@PSI_lbc said in Windows 7 Webengine example fail with "Unknown module(s) in QT: webengine":
Do you know if the 5.8/Webkit binaries support a mix of HTML and JavaScript on the same page?
Of course, yes!
@Konstantin-Tokarev said in Windows 7 Webengine example fail with "Unknown module(s) in QT: webengine":
@xeoshow said in Windows 7 Webengine example fail with "Unknown module(s) in QT: webengine":
Is the memory leak problem resolved in the qtwebkit-tp5-qt58-mingw530-x86.zip or qtwebkit-5.212.0_alpha2-qt59-mingw530-x86.zip
Please try it out, IIRC I couldn't reproduce that issue.
Also, don't use
QWebSettings::setObjectCacheCapacities(0,0,0)
, this indeed was causing leaks in the old versions, and WebKit isn't really tuned or even tested to operate with no cache at all.Thanks for kind help, OK, I will try it out and report back.
BTW, is there any estimate target date for the beta or stable version? Thanks again.
Best regards, Jason
-
Hello @Konstantin-Tokarev ,
I tried with 5.8.0 and 5.9.2 and your corresponding release of QtWebKit, seems still the same symptom, the memory will keep increasing if I refresh the page repeatedly.
BTW, the html pages I used are generated via vuejs, is that OK?
Thanks a lot.
Best regards, Jason
-
It now says Qt Webengine component is only supported for MSVC 2017, took me a while to figure out.