From 747b668cbb04b2170447c312b6901854e2a90f2d 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 36e3c65a57cb2..e1814b9ccd117 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);