Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use QtPy abstraction layer #144

Closed
wants to merge 4 commits into from

Conversation

samtygier-stfc
Copy link

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
Copy link
Collaborator

paskino commented Apr 25, 2024

potentially this will close

@@ -5,5 +5,5 @@ channels:
dependencies:
- python
- pip
- pyside2
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The user will need to remember to install a Qt binding package. Do we want that?

@paskino
Copy link
Collaborator

paskino commented Apr 26, 2024

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

@paskino paskino closed this Apr 26, 2024
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.

Enable changing of Qt backend
2 participants