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

Made parameter model of QAbstractItemView.setModel optional #49

Merged
merged 3 commits into from
Jul 4, 2020
Merged

Conversation

TilmanK
Copy link
Contributor

@TilmanK TilmanK commented Jul 3, 2020

When passing None to setModel the model will be removed from the view. Qt handles this internal by setting a dummy model when a null pointer is passed:
https://stackoverflow.com/questions/46630185/qt-remove-model-from-view

When passing None to setModel the model will be removed from the view. Qt handles this internal by setting a dummy model when a null pointer is passed:
https://stackoverflow.com/questions/46630185/qt-remove-model-from-view
@stlehmann
Copy link
Collaborator

Thanks for the PR. There is one more thing. Could you please add an entry to the Changelog. Cheers.

@TilmanK
Copy link
Contributor Author

TilmanK commented Jul 4, 2020

Hey, I fixed the CI errors my PR produced by also correcting the subclasses. Updated the changelog on your request. :)

@stlehmann
Copy link
Collaborator

Great work, thanks 👍

@stlehmann stlehmann merged commit 6b40e6d into python-qt-tools:master Jul 4, 2020
bluebird75 pushed a commit to bluebird75/PyQt5-stubs that referenced this pull request Aug 24, 2021
Made parameter model of QAbstractItemView.setModel optional
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.

2 participants