Project ERROR: Unknown module(s) in QT: webkitwidgets
-
@Cobra91151
Ok, i assume it would be precompiled as else no reason for compiler versions.- It seems I have circular include QtWebView but I included it only once. It's strange.
You can turn on Include view and see if something shows up
-
My includes screenshot:
Maybe this project has (https://github.com/annulen/webkit/releases) circular include, or bugs in the code.
Also I have downloadedqtwebview-opensource-src-5.7.1
from officialQt
source. But I don't know where to install it? Is there any documentation link how to installsubmodules
? Thanks. -
@Cobra91151 said in Project ERROR: Unknown module(s) in QT: webkitwidgets:
But I don't know where to install it? Is there any documentation link how to install submodules? Thanks.
Hi, normally you would do
qmake
make
make installfor such a source zip
-
I get
'qmake' is not recognized as an internal or external command, operable program or batch file.
when running onqtwebview-opensource-src-5.7.1
(Developer Command Prompt for VS2015)?I have these files after extraction from archive:
Should I copy these files to the path:
C:\Qt\5.7\Src\qtbase
and qmake
make
make install? -
I have reinstall
Qt 5.7.1
and my .pro include isQT += widgets core gui network webview concurrent
test.h
#include <QtWebView>
But the error is the same when initialize
QtWebView *mapBrowserView;
QtWebView is not the class, it is the namespace, image:
-
Now I have figured it out -
Qt WebView provides a way to display web content in a QML application
but I'm developingWin API
application only forWindows
OS. So it will not work. -
So here is how I have fixed it:
- Copy the contents of the archive
qtwebkit_tp4_qt57_msvc2015_x86.zip
toC:\Qt\5.7\msvc2015
; - Include
webkitwidgets
to.pro
file; - Include
#include <QtWebKitWidgets/QWebView>
- Initialized the
QWebView *mapBrowserView;
object;
Now it's all compile and work.
- Copy the contents of the archive
-
@Cobra91151 Hi i also face same issue, you have any Qtwebkitwidgets install setup document?
-
-
So you didnt try like he wrote ?
-
Ok but you should to that then.
and dont forget to run qmake from build menu when you change the .pro file. -
so i need copy this qtwebkit_tp4_qt57_msvc2015_x86.zip to C:\Qt\5.7\msvc2015; to qtbase is enough and i need following below step is enough? . and i will give qmake ?.
Copy the contents of the archive qtwebkit_tp4_qt57_msvc2015_x86.zip to C:\Qt\5.7\msvc2015;
Include webkitwidgets to .pro file;
Include #include <QtWebKitWidgets/QWebView>
Initialized the QWebView *mapBrowserView; object; -
Why not try it. ? ( i have not)
He says to unpack the zip to that location (Copy the contents ). not copy whole zip file.
he says it then worked for him.
And after you alter your .pro file, you must run qmake from build menu.