balthazarneveu / interactive_pipe

create interactive image processing pipeline with friendly sliders
The Unlicense
8 stars 1 forks source link

Fix PyQt6 backend by using scoped Qt enums #41

Closed emmcb closed 7 months ago

emmcb commented 7 months ago

The Qt backend broke after I upgraded to Qt6 / PyQt6 due to the Qt enum usage.

Indeed, according to the documentation https://www.riverbankcomputing.com/static/Docs/PyQt5/gotchas.html#enums, it is highly recommended to specify the scope of the enum, and PyQt6 only allows this way.

This fixes PyQt6 for me, and from what I understand it should still be backward compatible with PyQt5, however this should be tested on a Qt5 / PyQt5 system -> @balthazarneveu can you please check on your computer before merging this?

balthazarneveu commented 7 months ago

Tested your branch, I can still use pageup/pagedown and everything seems to work properly. Thank you.