qtpy: Add a deprecation warning for unsupported `Qt` versions and bindings (at least `Qt4`: `PyQt4` and `PySide`)
Maybe could be worthy to release 1.11.3 with a depreciation warning:
- Deprecation warning for
Qt4(removedPyQt4andPySidesupport forv2.0.0) - Deprecation warning for older versions of
Qt5: Depending on what minimumQt5and bindings versions we will support forv2.0.0. Maybe5.9(if we can make it work), but most probably5.12
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 1
- Comments: 26 (26 by maintainers)
Commits related to this issue
- Add a warning for users still running legacy Qt4-based APIs to fix #261 — committed to CAM-Gerlach/qtpy by CAM-Gerlach 3 years ago
- Add a warning for users still running legacy Qt4-based APIs to fix #261 — committed to CAM-Gerlach/qtpy by CAM-Gerlach 3 years ago
- Merge from 1.x: PR #283 Fixes #261 — committed to spyder-ide/qtpy by dalthviz 3 years ago
That also makes the most sense to me 👍 . I can open a new issue.
I’m not sure about that, but we can discuss that in the new issue. I’ll try to compile the relevant bits from each of us there to get things started.
Yeah, thanks are going okay for now at the moment in that department, thanks 👍
Thanks @CAM-Gerlach , don’t worry and hope everything is going ok
I think we should leave this message for QtPy 2.0
I’m not in favor of that. Instead, let’s open a new issue and fix it with a new PR. This issue was about the Qt4 message.
@CAM-Gerlach see https://github.com/spyder-ide/qtpy/pull/281#issuecomment-972950279
No, we don’t. Perhaps we should warn about Qt < 5.9 because the oldest version we can test.
Ah yes that makes sense, will reword this issue then 👍
Sorry if I was unclear. I assumed this issue was motivated by the fact that Qt4 binding support is removed in QtPy 2.0, untested and deprecated in QtPy 1.x, and EoL upstream. Since all three of these reasons are equally true for Qt5 <5.9/5.12 (the specifics of which are being discussed in #233 ), I thought it might make sense to consider warning for that here as well (considering I’d think we’d want to decide on that before you make a final QtPy 1.x release with this change).
I think that sounds good, but lets wait to see what others think.
Thats true, yes, I would say that the acceptable minimum for PyQt could be >=5.9 (since is the lates version in the anaconda channel) but since there are some issues regarding scoped enums with that version for Python 3.6 and 3.7 probably at the end the minimum will be something like >=5.12 as with PySide2. However we need to further discuss this too
Thanks @CAM-Gerlach for checking on this and giving some suggestions! From my side I would say:
Point 1 -
DeprecationWarningvsUserWarning: I would sayDeprecationWarningsince when thinking about this I was mostly thinking in devs that useQtPyfor their applications.Point 2 - Tha validation: I will say both since we should cover all usages of Qt4 that will not be supported (either automatic detection or user defined variables).
Point 3 - The message: A generic warning explaining that
Qt4will not be supported anymore (i.ePyQt4andPySide) should be enough I thinkWhat do you think @ccordoba12 ? Also maybe @andfoy or @steff456 have some ideas regarding approaches to this?
And also @CAM-Gerlach would you like to work on this?