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

[bdedit Enhancement] Switch from PyQT5 to PySide6? #23

Open
Gjacquenot opened this issue Aug 11, 2023 · 5 comments
Open

[bdedit Enhancement] Switch from PyQT5 to PySide6? #23

Gjacquenot opened this issue Aug 11, 2023 · 5 comments
Assignees
Labels
enhancement New feature or request

Comments

@Gjacquenot
Copy link

Gjacquenot commented Aug 11, 2023

bdedit relies on PyQt5, which has a GPL license, and that seems to create problems with PyQT5

Here is the license for PyQT5: PyQt5 is released under the GPL v3 license and under a commercial license that allows for the development of proprietary applications.

bdsim has a MIT license, but including PyQT5 makes the application a GPL application, unless buying a commercila license.

An alternative would be to switch from PyQT5 to PySide6

The main notable difference between PyQT5 and PySide6 is licensing — with PyQt6 being available under a GPL or commercial license, and PySide6 under a LGPL license.

The PySide6 wheel is an alias to other two wheels PySide6_Essentials and PySide6_Addons, which contains a predefined list of Qt Modules.

Switching from PyQT to PySide is documented here. Little more complicated than sed -i s/PyQT5/pyside/g source.py but can be done easily...

Moreover, QT recommend to use PySide6.

QTCreator can be used with PySide6.

@petercorke
Copy link
Owner

I did not know that! I will investigate and fix, but am a bit backlogged at the moment. Do you know if PySide is easier to install on Apple silicon? PyQt5 was a pain.

@Gjacquenot
Copy link
Author

I have no experience with Apple Silicon, but some already had the problem and it seems to be fixed as indicated:

  • @cmaureir wrote here PySide 6.2.2+ provides support for Apple Silicon, so you could simple run a pip install pyside6 and get it.
  • There is a dedicated blog here

So it might be solved...

@cmaureir
Copy link

Yes, we support Apple Silicon since 6.2.2+ we have a node in our CI that builds universal wheels which are uploaded to PyPI https://pypi.org/project/PySide6/#files

@petercorke
Copy link
Owner

I've started this process, but this also involves an effective change from Qt5 to Qt6 which has non trivial changes in methods and enums. Will keep you posted on progress

@petercorke petercorke added the enhancement New feature or request label May 27, 2024
@petercorke
Copy link
Owner

Still on my todo list and there is a pyside6 branch but still work to be done.

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

No branches or pull requests

3 participants