TomographicImaging / eqt

A number of templates and tools to develop Qt GUI's with Python effectively.
Other
2 stars 3 forks source link

Use QtPy abstraction layer (#144). GHA tests with PySide2 and PyQt5 #146

Open paskino opened 3 months ago

paskino commented 3 months ago

Builds on #144 and installs Qt bindings in GHA tests. From @samtygier-stfc :

This switches to importing Qt classes via the qtpy abstraction layer. The library will then use which ever Qt binding you have in your environment. If you have multiple, its possible to select one using an environment variable (see https://github.com/spyder-ide/qtpy).

A small change to some mocking in a test was needed.

This passes all the tests, but has not been tested for an application that uses the library.

An application that uses eqt, will now need to add a dependency on the Qt binding that it wants to use.

Because now an app installing eqt will not have installed a Qt binding by default this is a backward incompatible change and will require a major version change.