I'm using Qt 5.7.1
and I have problem with undefined QtWebView
. I have found and download from the link - https://github.com/annulen/webkit/releases
qtwebkit_tp4_qt57_msvc2015_x86.zip
and copy the content of the archive to C:\Qt\5.7\msvc2015
. Now it found QtWebView
but the problem is with the object:
test.h
QtWebView *mapBrowserView;
Errors:
error: C2143: syntax error: missing ';' before '*'
error: C4430: missing type specifier - int assumed. Note: C++ does not support default-int
So it doesn't work. I think installation should be different. How to fix it? Thanks in advance for the help.
It seems I have circular include QtWebView
but I included it only once. It's strange.
So here is how I have fixed it:
qtwebkit_tp4_qt57_msvc2015_x86.zip
toC:\Qt\5.7\msvc2015
;webkitwidgets
to.pro
file;#include <QtWebKitWidgets/QWebView>
QWebView *mapBrowserView;
object;Now it's all compile and work.