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);