-
Notifications
You must be signed in to change notification settings - Fork 116
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
SG-30534: First step to supporting PySide6 #898
Conversation
staceyoue
commented
Jun 15, 2023
- Provide a patch for PySide6 to work using the PySide (Qt4) interface
- Create a new qt6 module to import PySide6 directly (unpatched)
- Next step, deprecate PySide/Qt4 and make PySide6/Qt6 the default base
* Provide a patch for PySide6 to work using the PySide (Qt4) interface * Create a new qt6 module to import PySide6 directly (unpatched) * Next step, deprecate PySide/Qt4 and make PySide6/Qt6 the default base
Codecov Report
@@ Coverage Diff @@
## master #898 +/- ##
==========================================
- Coverage 79.13% 78.86% -0.27%
==========================================
Files 177 179 +2
Lines 19495 19828 +333
==========================================
+ Hits 15428 15638 +210
- Misses 4067 4190 +123
... and 6 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Look good to me. Just 2 minor comments.
@@ -0,0 +1,12 @@ | |||
# Copyright (c) 2016 Shotgun Software Inc. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2016 -> 2023
Shotgun Software Inc -> Autodesk
To apply on each new file of this PR
@@ -372,6 +446,10 @@ def _import_modules(self, interface_version_requested): | |||
return pyside2 | |||
except ImportError: | |||
pass | |||
elif interface_version_requested == self.QT6: | |||
# TODO migrate qt base from Qt4 interface to Qt6 will require patching Qt5 as Qt6 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When would this TODO be taken care of? In this PR? In the next pyside6 PR? When we deprecate QT4?
logger.debug("Requesting %s-like interface", interface) | ||
|
||
# First try PySide6. | ||
if interface_version_requested == self.QT4: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this a typo? (QT4 instead of QT6)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think it is. It troubled me too but it makes sense when you read the full file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fine with me. The left overs comments will have to be addressed when dropping QT4.