-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Support for Qt6 #20201
Comments
Hey @mscheltienne, thanks for reporting. You said
Yeah, we have to because Qt5 won't receive more updates (i.e. improvements and bugfixes) from the Qt company.
We don't have a specific timeline in mind yet, but probably the next year and a half or two years. The thing is we won't get a substantial benefit from moving to Qt6 right now nor most of our users, I'd say, in the sense that Spyder will continue working exactly the same with that new version. Is there a particular reason you're asking for this? |
Ok, thank you for the update. |
Ok, I see. The problem is we have limited resources and supporting a new Qt version usually takes a single, full time developer two or three months to do it. |
Thanks for your response, @ccordoba12! |
One advantage of moving to Qt6 is to have native Spyder on M1. Right now Spyder only runs in emulation (Rosetta 2) mode. Actually, it works only with the prebuilt Spyder, Spyder cannot be installed with pip, it fails at the installation of PyQt5, which is obviously not available natively for the M1 site they do not develop this version anymore. On the other hand PqQt6 or PySide6 is available for the M1, we just need Spyder to use one of them. |
You can install a native build from conda install --channel=conda-forge mamba
mamba install --override-channels --channel=conda-forge --name=spyder spyder will install a native |
Not true, as @hoechenberger clearly pointed out. |
You are probably right, but I do not use Anaconda. I guess I just have to wait until PyQt6 is implemented in Spyder and use the emulation until. |
You don't need to use Anaconda, just the conda package manager, But I do recognize that this is not always an option either. |
I can't find actual status of Qt6 support in Spyder. Lines 35 to 38 in 2cf15e2
which suggests it should work. Meanwhile to try Qt6 in Spyder I built QtPy with PySide6 support only.
Full log: Could someone please specify whether Qt6 is fully supported by Spyder ? |
Spyder 6 works with PyQt6 without issues. But there are still some problems we need to address for PySide6. |
Hi guys, there is any option to install Spyder v6 with the Qt6 by default? It works well with Qt6 (PyQt6) but after installing Spyder we need to remove Qt5 things because it is required by setup. The option --no-deps is not too useful since there are many other deps on Spyder. Any future provision to include PyQt6 to requirements? Or test if Qt is installed and skip Qt5 things to be installed? Thanks |
How are you installing spyder? |
Not sure if I understand the question, but using |
There isn't one right now, sorry.
I think we could add a
to get Spyder with Qt6. For pip installations, I'm not sure if we could offer a |
For us the option with PIP is the most important one. Thanks for taking a look! And congratulations for Spyder 6, seems much more flexible! I understand that it is not so simple to offer the option for PIP since imports have different names. Maybe using a |
I took a look at it and it seems it's not possible unless we create a new package without Qt bindings (see here). But that's too much work for something that should be available in six months or so on PyPI, and in a few weeks on Conda-forge.
Thanks! Glad you liked it.
You're welcome to give it a try, but as far as I know pip doesn't allow to run code at installation time. |
Thanks @ccordoba12, the PR could be an option if it works for you. Let me know. |
I looked through the open and close issues, and could not find one related to support for Qt6.
Currently, Spyder does not support Qt6 bindings,
PyQt6
andPySide6
:spyder/spyder/requirements.py
Line 37 in e5334d1
Do you plan on adding support/changing the default to a Qt6 binding, and on which timeline?
The text was updated successfully, but these errors were encountered: