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

Closed samtygier-stfc closed 3 months ago

samtygier-stfc commented 3 months ago

Closes #2

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.

paskino commented 3 months ago

potentially this will close

paskino commented 3 months ago

Thanks @samtygier-stfc closing this as superseded by #146