From 3770eec050da2affdd342fb4f8cca2162648691c Mon Sep 17 00:00:00 2001 From: Matthieu Gallien Date: Wed, 24 Apr 2024 12:44:25 +0200 Subject: [PATCH] windows needs an explicit QML import path to be set on windows qml modules are not default loaded from the install folder of the app set it such that qml modules are imported from teh installed qml folder Signed-off-by: Matthieu Gallien --- src/gui/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/main.cpp b/src/gui/main.cpp index 36e3c65a57cb..e1814b9ccd11 100644 --- a/src/gui/main.cpp +++ b/src/gui/main.cpp @@ -54,7 +54,9 @@ int main(int argc, char **argv) { #ifdef Q_OS_WIN SetDllDirectory(L""); + qputenv("QML_IMPORT_PATH", (QDir::currentPath() + QStringLiteral("/qml")).toLatin1()); #endif + Q_INIT_RESOURCE(resources); Q_INIT_RESOURCE(theme);