2

I want to create a QML project with webkit support therefore I use QT += webkit option to load this module but I face with this error at compile time:

error: Unknown module(s) in QT: webkit

I was installed QT 5.9 on mac OS from installer package. At the installer dialog steps I checked webkit item in package and the installation successfully finished without any problem.

I tried to find out any webkit.so or any symbol to ensure this package is exists but I didn't find anything and it seems like this part of package is not installed correctly. Is there any idea to why this wouldn't work?

Donald Duck
  • 8,409
  • 22
  • 75
  • 99

1 Answers1

0

Qt Webkit was Deprecated in qt 5.5 at July 2015.

Check Qt version history

You should use WebEngine:

QT += webenginewidgets

More info about Porting from Qt WebKit to Qt WebEngine here

Farhad
  • 4,119
  • 8
  • 43
  • 66
  • I tried using `QT += webenginewidgets` on Mac but it could't find the module. However, it works just fine on Windows. – Donald Duck Jul 17 '17 at 18:35