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 24, 2024
1 parent b83caba commit 4373aad
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 4373aad

Please sign in to comment.