Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add QtCore.Slot() decorations to FigureCanvasQT #29355

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

Merged
merged 1 commit into from
Dec 20, 2024

Conversation

pijyoi
Copy link
Contributor

@pijyoi pijyoi commented Dec 20, 2024

PR summary

This PR adds QtCore.Slot decorations to the methods in FigureCanvasQT. (It is similar to #27215)

The motivation for this PR was found due to pyqtgraph/pyqtgraph#3205, which can be summarized as: when tests are run with pytest-qt installed, a QtWarningMsg will be emitted concerning non-decorated methods used as slots.

PR checklist

The pyqtgraph tests that were failing prior to this PR have been tested to be passing with this PR with PySide6 6.8.1, PyQt6 6.8.0, PyQt5 5.15, PySide2 5.15

@tacaswell tacaswell added this to the v3.10.1 milestone Dec 20, 2024
@tacaswell tacaswell merged commit 21f755b into matplotlib:main Dec 20, 2024
38 checks passed
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Dec 20, 2024
@pijyoi pijyoi deleted the annotate-qtslot-figurecanvasqt branch December 20, 2024 23:26
timhoffm added a commit that referenced this pull request Dec 21, 2024
…355-on-v3.10.x

Backport PR #29355 on branch v3.10.x (Add QtCore.Slot() decorations to FigureCanvasQT)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants