New GitHub issue #93013 from Landmaster:<br>
<hr>
<pre>
<!--
If you're new to Python and you're not sure whether what you're experiencing is a bug, the CPython issue tracker is not
the right place to seek help. Consider the following options instead:
- reading the Python tutorial: https://docs.python.org/3/tutorial/
- posting in the "Users" category on discuss.python.org: https://discuss.python.org/c/users/7
- emailing the Python-list mailing list: https://mail.python.org/mailman/listinfo/python-list
- searching our issue tracker (https://github.com/python/cpython/issues) to see if
your problem has already been reported
-->
**Bug report**
There is a a very weird bug with Python 3.10.4 and Qt (both 5.15.2 and 6.3.0) such that if you reference any non-trivial Qt classes or methods (such as qIsFinite, QString, or QVector) on Windows, trying to call Py_Main will result in a no-op (the program will immediately exit 0). Furthermore, the bug is absent on MacOS. I have linked a minimal example of the bug at https://github.com/Landmaster/python-embed-qt-bug. The corresponding bug report on the QT side is at https://bugreports.qt.io/browse/QTBUG-103734.
**Your environment**
- CPython versions tested on: 3.10.4
- Operating system and architecture: Windows 11
</pre>
<hr>
<a href="https://github.com/python/cpython/issues/93013">View on GitHub</a>
<p>Labels: type-bug</p>
<p>Assignee: </p>