Skip to content

Commit

Permalink
windows needs an explicit QML import path to be set
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
mgallien committed Apr 26, 2024
1 parent 07c2554 commit 3770eec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gui/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 3770eec

Please sign in to comment.