From 96425960f9d57387c33e3ba50785aaa81255bc98 Mon Sep 17 00:00:00 2001 From: Jocelyn Turcotte Date: Fri, 28 Mar 2014 17:14:30 +0100 Subject: Render the widgets view using the scene graph into a QOpenGLWidget This means that widgets application now need to setup the GL context sharing as well. QWebEngineWidgets::initialize() must be called, which has the same effect as QWebEngine::initialize(). The QtWebEngineWidgets now depends on the QtWebEngine module to make this happen. Since QOpenGLWidget is only available in Qt 5.3, this patch also disables the webenginewidgets module completely when building using Qt 5.2. Change-Id: I0e99a779d1eb080f2ccf5a338ff0763ad64e6eba Reviewed-by: Simon Hausmann --- examples/examples.pro | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'examples/examples.pro') diff --git a/examples/examples.pro b/examples/examples.pro index 7940e289d..3114e6887 100644 --- a/examples/examples.pro +++ b/examples/examples.pro @@ -1,7 +1,8 @@ TEMPLATE=subdirs SUBDIRS += webengine/quicknanobrowser -qtHaveModule(widgets) { + +qtHaveModule(widgets):equals(QT_MAJOR_VERSION, 5):greaterThan(QT_MINOR_VERSION, 2) { SUBDIRS += \ webenginewidgets/browser \ webenginewidgets/fancybrowser -- cgit v1.2.3