I guess that the is that the Qt Quick style configuration file (qtquickcontrols2.conf) is not being applied in the case of the Python version.
You may add the file to the environment variables:
More info about the configuration file in the docs:
https://doc.qt.io/qt-6/qtquickcontrols-configuration.html