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

Q_ENUMS is deprecated #960

Open
jbellister-slac opened this issue Jan 26, 2023 · 0 comments
Open

Q_ENUMS is deprecated #960

jbellister-slac opened this issue Jan 26, 2023 · 0 comments

Comments

@jbellister-slac
Copy link
Collaborator

Was poking around Qt6 a bit and this was the most obvious problem. The way we add enums to get them to show up in Qt designer is currently through use of Q_ENUMS. This is deprecated in PyQt5 and removed entirely in both PyQt6 and PySide6.

The new way is as described here: https://www.riverbankcomputing.com/static/Docs/PyQt6/metaobjects.html#pyqtenum

Will need to do this in a backwards compatible way though.

As a side note PyQt6 also dropped support for unscoped enums (and PySide6 discourages their use). QtPy makes this not an issue (for now at least) but there are automated scripts out there for updating if we do need to at some point.

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