Skip to content

Upgrade to PyQt6#46

Merged
ThomasAkam merged 2 commits intopyControl:devfrom
alustig3:pyqt6-compatibility
Sep 29, 2022
Merged

Upgrade to PyQt6#46
ThomasAkam merged 2 commits intopyControl:devfrom
alustig3:pyqt6-compatibility

Conversation

@alustig3
Copy link
Copy Markdown
Contributor

I was unable to run pyControl on an M1 mac-mini. There was a lack of support for installing PyQt5 on Apple silicon.

There is support for PyQt6 on Apple silicon, but I needed to make these code changes for pyControl to work.

Here is a link to some information about the differences between PyQt5 and PyQt6: https://www.pythonguis.com/faq/pyqt5-vs-pyqt6/

The changes should be backwards compatible with PyQt5. I tested on my previous computer that only has PyQt5 and everything worked as far as I could tell. All Qt classes are being imported from PyQtGraph, and PyQtGraph takes care of automatically loading PyQt5, PyQt6, PySide2 or PySide6 from your computer.

@ThomasAkam ThomasAkam merged commit c8cff9f into pyControl:dev Sep 29, 2022
@ThomasAkam
Copy link
Copy Markdown
Collaborator

Thanks Andy. We'll have to be careful going forward to test against pyqt5 and 6 following changes to the GUI, but I guess it's worth it to maintain cross platform compatibility.

alustig3 added a commit to alustig3/pyControl that referenced this pull request Oct 6, 2022
some additional changes that were missed in pyControl#46
IsabelDAlessandro pushed a commit to IsabelDAlessandro/pycontrol_code that referenced this pull request Jan 21, 2026
* Upgrade to PyQt6

* more QtGUI to QtWidgets conversions
IsabelDAlessandro pushed a commit to IsabelDAlessandro/pycontrol_code that referenced this pull request Jan 21, 2026
some additional changes that were missed in pyControl#46
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

Successfully merging this pull request may close these issues.

2 participants