Skip to content

Commit 5f8bb81

Browse files
authored
Merge pull request #80 from igor-sirotin/bugfix/qml-import-paths
Fixed QML imports paths order.
2 parents 7bc9171 + 44c1801 commit 5f8bb81

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,5 @@ Just like all linuxdeploy plugins, the Qt plugin's behavior can be configured so
5959
- `$EXTRA_QT_PLUGINS=pluginA;pluginB`: Plugins to deploy even if not found automatically by linuxdeploy-plugin-qt
6060

6161
QML related:
62-
- `$QML_SOURCES_PATHS`: directory containing the application's QML files -- useful/needed if QML files are "baked" into the binaries
63-
- `$QML_MODULES_PATHS`: extra directories containing imported QML files (normally doesn't need to be specified)
62+
- `$QML_SOURCES_PATHS`: directory containing the application's QML files useful/needed if QML files are "baked" into the binaries. `$QT_INSTALL_QML` is prepended to this list internally.
63+
- `$QML_MODULES_PATHS`: extra directories containing imported QML files (normally doesn't need to be specified).

src/qml.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ std::vector<QmlModuleImport> getQmlImports(const bf::path &projectRootPath, cons
112112
std::vector<QmlModuleImport> moduleImports;
113113

114114
auto qmlImportPaths = getExtraQmlModulesPaths();
115-
qmlImportPaths.emplace_back(installQmlPath);
115+
qmlImportPaths.emplace(qmlImportPaths.begin(), installQmlPath);
116116
ldLog() << "QML imports search path: ";
117117
for (const auto& path : qmlImportPaths)
118118
ldLog() << " " << path;

0 commit comments

Comments
 (0)