1

I am using Qt 5.6, and the problem is that QWebView is not appearing on the widget box. It looks like the widget is not installed, but I haven't found any way to install it.

QWebView issue

J. Chomel
  • 8,193
  • 15
  • 41
  • 69
  • add it in code then. create some placeholder widget which you later replace by the webview. or you insert it... Same as you'd do with your custom widgets. – Piglet Apr 29 '16 at 19:43
  • I am trying to do what you suggested, but the editor is not recognizing the QWebView class. This is how I am including it: #include "QtWebKitWidgets/QWebView" – Брайан Волков Apr 29 '16 at 20:20

2 Answers2

1

In Qt 5.6 You need to use QWebEngineView then you can load your web page in qwidget.

bhupinder
  • 315
  • 1
  • 6
  • 23
1

Build-in support of QWebView/QWebKit was removed from Qt 5.6, see details here. You still can use them if you will build Qt from sources and include QWebKit.

Or you can port you application to use Qt Web Engine, see here.

demonplus
  • 5,613
  • 12
  • 49
  • 68