Skip to content

Add support for PySide6#5161

Merged
radarhere merged 2 commits intopython-pillow:masterfrom
hugovk:add-pyside6
Jan 1, 2021
Merged

Add support for PySide6#5161
radarhere merged 2 commits intopython-pillow:masterfrom
hugovk:add-pyside6

Conversation

@hugovk
Copy link
Copy Markdown
Member

@hugovk hugovk commented Dec 30, 2020

Fixes #5145.

There are two sets of Python bindings for Qt, called PyQt and PySide.

Why are there two packages?

PyQt has been developed by Phil Thompson of Riverbank Computing Ltd. for a very long time — supporting versions of Qt going back to 2.x. Back in 2009 Nokia, who owned the Qt toolkit at the time, wanted to have Python bindings for Qt available under the LGPL license (like Qt itself). Unable to come to agreement with Riverbank (who would lose money from this, so fair enough) they then released their own bindings as PySide (also, fair enough).

https://www.learnpyqt.com/tutorials/pyqt5-vs-pyside2/

We support:

  • PySide2 for Qt 5
  • PyQt5 for Qt 5

Qt 6 has been recently released: https://www.qt.io/blog/qt-6.0-released

Changes proposed in this pull request:

  • Add support for PySide6. Take precedence over PyQt5 and PySide2, if they're also installed.

@hugovk hugovk added the Qt Qt for Python, PyQt, PySide label Dec 30, 2020
@radarhere
Copy link
Copy Markdown
Member

Is it concerning that if I pip install PySide6, Ubuntu starts segfaulting? When I pip install PySide2, this is not what happens.

@hugovk
Copy link
Copy Markdown
Member Author

hugovk commented Jan 1, 2021

It'll be missing dependencies for Ubuntu, for example we have libxcb-xinerama0 pyqt5-dev-tools for PyQt5.

I've created python-pillow/docker-images#102 to add PySide6 and its dependencies to the ubuntu-20.04-focal-amd64 image.

@radarhere
Copy link
Copy Markdown
Member

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement Qt Qt for Python, PyQt, PySide

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support PySide6 for ImageQt

2 participants