hooks: qt: update hooks for PySide6/PyQt6 v6.5.0 #7549
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Update module definitions and add hooks for
PySide6.QtLocation
,PySide6.QtTextToSpeech
, andPySide6.QtSerialBus
, which were added in PySide6 6.5.0.Add hook for
PyQt6.QtTextToSpeech
, which was introduced in PyQt6 6.4.x, and apparently flew under our radar because the basic import test works without the hook as well (the hook ensures that plugins are collected).In
test_QtNetwork_SSL_support
we now first run a subpprocess to check ifQtNetwork
actually supports SSL; this is becauseQtNetwork
in linux wheels for PySide6 6.5.0 requires OpenSSL 3, which is not available on theubunut-20.04
runner that we use.The
QtWebEngine
in PySide6 6.5.0 seems to be broken in virtualized environments due to lack ofopengl32sw.dll
in the Windows wheels. I've lodged a complaint (https://bugreports.qt.io/browse/PYSIDE-2289) to see if this is intentional, but in the meantime, we should skip those tests on Windows.... and since apparently PyQt6 6.5.0 was released this morning, add the missing hook for
PyQt6.QSpatialAudio
and ensure that all our tests instantiateQCoreApplication
/QGuiApplication
/QApplication
withsys.argv
instead of an empty list, since the empty list seems to cause problems withQtWebEngine
inPyQt6
6.5.0.