File qt-5.12.12-find-executable-by-qt5.conf-settings.patch of Package mingw64-libqt5-qtbase
--- qtbase-everywhere-src-5.12.12/src/corelib/io/qstandardpaths.cpp.orig 2022-07-14 14:10:01.311815427 +0200
+++ qtbase-everywhere-src-5.12.12/src/corelib/io/qstandardpaths.cpp 2022-07-14 14:11:25.943591484 +0200
@@ -42,6 +42,7 @@
#include <qdir.h>
#include <qfileinfo.h>
+#include <qlibraryinfo.h>
#ifndef QT_BOOTSTRAPPED
#include <qobject.h>
@@ -551,6 +552,9 @@
}
#ifdef Q_OS_WIN
+ QString prefix = QLibraryInfo::location(QLibraryInfo::PrefixPath);
+ searchPaths.push_back(prefix + QString::fromLatin1("/bin"));
+
// On Windows, if the name does not have a suffix or a suffix not
// in PATHEXT ("xx.foo"), append suffixes from PATHEXT.
static const QStringList executable_extensions = executableExtensions();