From 6034066c6e95db1a7ec019194c36a5d7f339a79a Mon Sep 17 00:00:00 2001 From: Andy Shaw Date: Tue, 7 Apr 2020 09:39:41 +0200 Subject: Dynamically create the qrc file so it has the right alias MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If the qrc file is created via the qml_module.prf then it takes the path to the file as part of the alias and therefore this is in the wrong place when it is loaded statically. So we need to create the qrc file dynamically as well so that it correctly locates the qmldir at the right location. Change-Id: I620febf818a335319dafd6e5d53329b856369d68 Reviewed-by: Christian Strømme --- src/imports/imports.pro | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/imports/imports.pro b/src/imports/imports.pro index feeb9f1..aab25ed 100644 --- a/src/imports/imports.pro +++ b/src/imports/imports.pro @@ -14,5 +14,13 @@ DYNAMIC_QMLDIR = \ "classname QWebViewModule" qtHaveModule(webengine):DYNAMIC_QMLDIR += "depends QtWebEngine 1.0" load(qml_plugin) +webview_qrc = \ + "" \ + "" \ + "$$OUT_PWD/qmldir" \ + "" \ + "" +write_file($$OUT_PWD/qmake_QtWebView.qrc, webview_qrc)|error() +RESOURCES = $$OUT_PWD/qmake_QtWebView.qrc OTHER_FILES += qmldir -- cgit v1.2.3