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

Port Qiskit Metal from PySide2 to PySide6 #908

Draft
wants to merge 17 commits into
base: main
Choose a base branch
from
Draft

Port Qiskit Metal from PySide2 to PySide6 #908

wants to merge 17 commits into from

Conversation

obrienpja
Copy link
Collaborator

What are the issues this pull addresses (issue numbers / links)?

Porting Qiskit Metal from PySide2 to PySide6

Did you add tests to cover your changes (yes/no)?

No, but I don't think we have any tests for the GUI itself anyway

Did you update the documentation accordingly (yes/no)?

No, none of the examples should be affected

Did you read the CONTRIBUTING document (yes/no)?

Yes

Summary

The commits change all of the PySide2 imports to PySide6 imports. It also changes the matplotlib backend from Qt5Agg to QtAgg.

Details and comments

A couple of classes were moved in PySide6. For example, QAction moved from QtWidgets in PySide2 to QtGui in PySide6. We also needed to change the backend that handles the rendering of matplotlib from Qt5Agg to QtAgg. According to their documentation, the QtAgg backend should be able to handle the connection between any version of Qt and matplotlib. From what I remember, they are doing their best to make it agnostic.

Hoping this will resolve an issue with running tests and doc building
@obrienpja obrienpja marked this pull request as draft January 26, 2023 21:17
@obrienpja
Copy link
Collaborator Author

When this is merged, it will resolve #798.

@CLAassistant
Copy link

CLAassistant commented Jun 7, 2023

CLA assistant check
All committers have signed the CLA.

@shanto268
Copy link

@priti-ashvin-shah-ibm @obrienpja

Hi all,

Is there any timeline on when this PR will be accepted?

Best,
Shanto

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.

4 participants