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

QMetaObject.Connection for .connect() / .disconnect() #54

Merged
merged 1 commit into from Aug 19, 2020

Conversation

altendky
Copy link
Collaborator

@altendky altendky commented Aug 7, 2020

a_signal.connect() returns a QMetaObject.Connection instance which can be passed to a_signal.disconnect(). The .connect() return type and .disconnect() parameter type hints are updated to express this.

https://www.riverbankcomputing.com/static/Docs/PyQt5/signals_slots.html#connecting-disconnecting-and-emitting-signals

@stlehmann
Copy link
Collaborator

Thanks for your PR. Could you please elaborate your description so it becomes clear what you changed and why?

Regards
Stefan

@altendky
Copy link
Collaborator Author

Sorry, is that good or are you looking for a more complete discussion? Thanks.

@stlehmann
Copy link
Collaborator

Great, thanks 👍

@stlehmann stlehmann merged commit c449596 into python-qt-tools:master Aug 19, 2020
bluebird75 pushed a commit to bluebird75/PyQt5-stubs that referenced this pull request Aug 24, 2021
QMetaObject.Connection for .connect() / .disconnect()
bluebird75 added a commit to bluebird75/PyQt5-stubs that referenced this pull request Apr 26, 2022
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.

None yet

2 participants