From 72bd4803e69375fbf0e00a1ada99083dbc6c52c5 Mon Sep 17 00:00:00 2001 From: plc-user <74435298+plc-user@users.noreply.github.com> Date: Wed, 7 Jan 2026 20:26:03 +0100 Subject: [PATCH 1/2] no random hashes to have more constant order of XML-tags --- sources/main.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sources/main.cpp b/sources/main.cpp index 8e3a05d36..cab5702ab 100644 --- a/sources/main.cpp +++ b/sources/main.cpp @@ -164,6 +164,14 @@ void delete_old_log_files(int days) */ int main(int argc, char **argv) { + // before creating Application: + // export environment-variable "QT_HASH_SEED" with value "1" for Qt5 and "0" for Qt6 + // to have "clean" XML-diffs: +#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) // ### Qt 6: remove + qputenv("QT_HASH_SEED", "1"); +#else + qputenv("QT_HASH_SEED", "0"); +#endif //Some setup, notably to use with QSetting. QCoreApplication::setOrganizationName("QElectroTech"); QCoreApplication::setOrganizationDomain("qelectrotech.org"); From bd89d3a1b7c62d9936f8ea908fdc620caa456e07 Mon Sep 17 00:00:00 2001 From: plc-user <74435298+plc-user@users.noreply.github.com> Date: Wed, 14 Jan 2026 17:56:02 +0100 Subject: [PATCH 2/2] no qt version check needed to disable randomisation of hashes --- sources/main.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/sources/main.cpp b/sources/main.cpp index cab5702ab..9a50a502b 100644 --- a/sources/main.cpp +++ b/sources/main.cpp @@ -165,13 +165,9 @@ void delete_old_log_files(int days) int main(int argc, char **argv) { // before creating Application: - // export environment-variable "QT_HASH_SEED" with value "1" for Qt5 and "0" for Qt6 - // to have "clean" XML-diffs: -#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) // ### Qt 6: remove - qputenv("QT_HASH_SEED", "1"); -#else + // export environment-variable "QT_HASH_SEED" with value "0" to + // disable radomisation for hashes in order to obtain "clean" XML-diffs: qputenv("QT_HASH_SEED", "0"); -#endif //Some setup, notably to use with QSetting. QCoreApplication::setOrganizationName("QElectroTech"); QCoreApplication::setOrganizationDomain("qelectrotech.org");