From 92f7247bc6e5c724ac6d0e858b77655da903d391 Mon Sep 17 00:00:00 2001 From: Matthieu Gallien Date: Wed, 25 Sep 2024 11:37:20 +0200 Subject: [PATCH] add seemingly needed qml import path will hopefuly make the qml engine search inside install dir within qml sub folder Close #7156 Signed-off-by: Matthieu Gallien --- src/gui/systray.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui/systray.cpp b/src/gui/systray.cpp index 456e7e618..85fee594c 100644 --- a/src/gui/systray.cpp +++ b/src/gui/systray.cpp @@ -70,6 +70,7 @@ void Systray::setTrayEngine(QQmlApplicationEngine *trayEngine) _trayEngine->setNetworkAccessManagerFactory(&_accessManagerFactory); + _trayEngine->addImportPath(QCoreApplication::applicationDirPath() + "/qml"); _trayEngine->addImportPath("qrc:/qml/theme"); _trayEngine->addImageProvider("avatars", new ImageProvider); _trayEngine->addImageProvider(QLatin1String("svgimage-custom-color"), new OCC::Ui::SvgImageProvider); -- 2.30.2