From 28f9f5e32499d6c3ce8e720d832a8ed19aeb9409 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Thu, 6 Apr 2023 14:00:35 +0800 Subject: To make it work on wasm because the plugin is static (on iOS too, but not yet tested) The plugin seems to be loaded, but it doesn't seem to cause any effect. --- Bootstrap.hxx | 2 +- qmldir | 1 + qootstrap.pro | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Bootstrap.hxx b/Bootstrap.hxx index eecbda6..828a031 100644 --- a/Bootstrap.hxx +++ b/Bootstrap.hxx @@ -7,7 +7,7 @@ class Qootstrap : public QQmlEngineExtensionPlugin { Q_OBJECT - Q_PLUGIN_METADATA(IID QQmlEngineExtensionInterface_iid) + Q_PLUGIN_METADATA(IID "org.darapsa.Qootstrap") }; class Bootstrap : public QObject diff --git a/qmldir b/qmldir index 8850490..ca06b67 100644 --- a/qmldir +++ b/qmldir @@ -1,2 +1,3 @@ module Bootstrap plugin qootstrap +classname Qootstrap diff --git a/qootstrap.pro b/qootstrap.pro index c3236cf..ecbd49c 100644 --- a/qootstrap.pro +++ b/qootstrap.pro @@ -1,5 +1,6 @@ TEMPLATE = lib CONFIG += plugin qmltypes +wasm: CONFIG += static QT += qml QML_IMPORT_NAME = Bootstrap -- cgit v1.2.3