-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pyqt5to6: raise warnings on fragile addAction calls
The object.addAction variants with multiple arguments have changed signature in Qt 6. It's safer to explicitly create a QAction first and then add to an object using: my_action=QAction(...) obj.addAction(my_action) It's a considerably less fragile syntax to use in any case! Fixes errors when trying to show context menu in Python console on Qt 6 builds
- Loading branch information
1 parent
c95df01
commit 310b917
Showing
4 changed files
with
147 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters