From 3e837e8a70a34a225a50fcc4bbd35d582b3d05d0 Mon Sep 17 00:00:00 2001 From: Elias Steurer Date: Sat, 14 Aug 2021 12:46:19 +0200 Subject: [PATCH] Add missing workshop plugin path for mac --- ScreenPlay/app.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ScreenPlay/app.cpp b/ScreenPlay/app.cpp index 2cb253a7..1f7e1186 100644 --- a/ScreenPlay/app.cpp +++ b/ScreenPlay/app.cpp @@ -195,6 +195,11 @@ void App::init() } qmlRegisterSingletonInstance("ScreenPlay", 1, 0, "ScreenPlay", this); + +#ifdef Q_OS_MACOS + // Needed for macos .app files + m_mainWindowEngine->addPluginPath(QGuiApplication::instance()->applicationDirPath()); +#endif m_mainWindowEngine->load(QUrl(QStringLiteral("qrc:/main.qml"))); // Must be called last to display a error message on startup by the qml engine