Search code examples
c++qtqt-creatorqtwebkit

Getting QtWebKit working in Qt creator


I have installed the Qt SDK and I am trying to make a basic web browser using their supposed QtWebKit though it's not in the include list and I am not sure how to include the relevant header/includes to get this show on the road?

Build error: "Cannot open include file: 'QtWebKit': No such file or directory".

Sorry if this is a basic question but I don't have much experience with C++.


Solution

  • By default, webkit is not included.

    If using qmake, you should add this line to the .pro file.

    QT += network webkit