Skip to content
New issue

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

Error importing QWIDGETSIZE_MAX with PySide6 #493

Open
niklashenning opened this issue Sep 14, 2024 · 0 comments
Open

Error importing QWIDGETSIZE_MAX with PySide6 #493

niklashenning opened this issue Sep 14, 2024 · 0 comments

Comments

@niklashenning
Copy link

Importing QWIDGETSIZE_MAX from qtpy.QtWidgets works with PyQt5 and PyQt6, but not with PySide6.
I think this might be an issue with PySide6 though, since it's not in PySide6.QtWidgets as the PySide6 documentation suggests.
An easy workaround would be defining QWIDGETSIZE_MAX myself since it's always set to 16777215 but maybe I'm missing something obvious here.

Code:
from qtpy.QtWidgets import QWIDGETSIZE_MAX

Error when using PySide6:
ImportError: cannot import name 'QWIDGETSIZE_MAX' from 'qtpy.QtWidgets' (C:\Users\NH\AppData\Local\Programs\Python\Python311\Lib\site-packages\qtpy\QtWidgets.py)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant