QWebChannel is only used if HAVE_QTWEBENGINEWIDGETS is setWebEngine is also available.
WIP as I'm not sure how to express HAVE_QTWEBENGINEWIDGETS in this caseThis converts scripting support into an optional feature which is only enabled if both dependencies are available.