We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following code works fine when commenting out the qtpy imports, but raises an exception when commenting out the PySide6 imports.
qtpy
from qtpy.QtWidgets import QApplication, QMainWindow, QWidget, QVBoxLayout, QBoxLayout, QLayout # from PySide6.QtWidgets import QApplication, QMainWindow, QWidget, QVBoxLayout, QBoxLayout, QLayout app = QApplication() mw = QMainWindow() w = QWidget() l = QVBoxLayout(w) w.setLayout(l)
> QT_API=pyside6 python ./tmp.py Traceback (most recent call last): File "/home/<--snip-->/tmp.py", line 8, in <module> w.setLayout(l) TypeError: 'PySide6.QtWidgets.QWidget.setLayout' called with wrong argument types: PySide6.QtWidgets.QWidget.setLayout(QVBoxLayout) Supported signatures: PySide6.QtWidgets.QWidget.setLayout(PySide6.QtWidgets.QLayout)
Is there a workaround for this that works with the current qtpy version?
> python --version Python 3.10.12 > pip list Package Version ------------------ ------- packaging 24.0 pip 22.0.2 PySide6 6.7.0 PySide6_Addons 6.7.0 PySide6_Essentials 6.7.0 QtPy 2.4.1 setuptools 59.6.0 shiboken6 6.7.0
The text was updated successfully, but these errors were encountered:
Hey @leon-thomm, thanks for reporting. This is a duplicate of issue #480.
In the meantime, please downgrade to version 6.6.
Sorry, something went wrong.
No branches or pull requests
The following code works fine when commenting out the
qtpy
imports, but raises an exception when commenting out the PySide6 imports.Is there a workaround for this that works with the current qtpy version?
The text was updated successfully, but these errors were encountered: