Skip to content

Installing QtWebKit Module

YaroslavErsteniuk edited this page Mar 19, 2018 · 9 revisions

QtWebKit is unofficial port of WebKit which currently compiles and runs on Linux, *BSD, Windows and macOS. WebKit itself is an open source web browser engine. WebKit's HTML and JavaScript code began as a branch of the KHTML and KJS libraries from KDE. As part of KDE framework, KHTML was based on Qt. However, during their porting efforts, Apple's engineers made WebKit toolkit independent.

Here are the steps for installing QtWebKit module on Qt 5.8 :

  1. Download the WebKit module.
  2. Extract it inside QT_DIR/5.8/{mingw53_32|clang_64|gcc_64}.
  3. Export environment variable QT_WEBKIT=true.
  4. Run qtsetup.

Note: On windows you may sometimes can't find qtsetup, but you can add libraries to be used to your pro file like following: LIBS+= QT_DIR\5.8\mingw53_32\lib\libQt5WebKit.dll.a
QT_DIR\5.8\mingw53_32\lib\libQt5WebKitWidgets.dll.a The precompiled libs finded in https://github.com/annulen/webkit/releases/tag/qtwebkit-tp5 and included by previous lines work only in release.

Clone this wiki locally