I am porting code from qt4 to qt5. I added the following line to my .pro file, as suggested:
.pro
QT += webkitwidgets
However, when
The community builds referenced by Alex are only available until Qt 5.9. If you want to use newer Qt5 (current version is 5.11), then another option is to port "QtWebKit" to "QtWebEngine".
See: https://wiki.qt.io/QtWebEngine/Porting_from_QtWebKit