You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While testing the PySide2/PySide6 binding, I get an assertion when importing newer modules, such as:
from Qt import QtWebEngineWidgets
I understand that the goal is to provide backwards compatibility for PySide/PyQt4, but these modules should simply assert within a PySide/PyQt4 binding as opposed to fail on their respective (remapped) binding. As a side-note, I noticed that Qt-stubs companion module includes most of the new modules.
Is this a bug or oversight? If not, what is the proposed approach to handling newer Qt modules?
I'm using Python 3.10 and Qt.py v1.41, alternating between PySide6 and PySide2.
The text was updated successfully, but these errors were encountered:
The goal and intent of only including the cross section of Qt 4, 5 and 6 is to remain confident that if your project runs on one binding, it runs on them all.
The way to handle modules that are not supported by Qt 4, 5 and 6 is to explicitly include them, such that it is clear to the reader and writer where and how the project can run.
importQt.py# Support for every binding# Extra features for clients with PySide6try:
fromPySide6importQtWebEngineWidgetswith_web_widgets=TrueexceptImportError:
with_web_widgets=False
There is an ongoing discussion about whether to remove the Qt 4 constraint, which would open up for more modules. Do add your voice there.
While testing the PySide2/PySide6 binding, I get an assertion when importing newer modules, such as:
from Qt import QtWebEngineWidgets
I understand that the goal is to provide backwards compatibility for PySide/PyQt4, but these modules should simply assert within a PySide/PyQt4 binding as opposed to fail on their respective (remapped) binding. As a side-note, I noticed that Qt-stubs companion module includes most of the new modules.
Is this a bug or oversight? If not, what is the proposed approach to handling newer Qt modules?
I'm using Python 3.10 and Qt.py v1.41, alternating between PySide6 and PySide2.
The text was updated successfully, but these errors were encountered: