-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
PR: More fixes for Qt 6 compatibility and a PySide2 fix #21685
Conversation
The Qt.NoDropShadowWindowHint flag has been added in Qt 5. Remove an (implicit) check for Qt 4 now that qtpy dropped support for Qt 4 (in version 2.0.0). This also ensures consistent behavior in PyQt and PySide.
The same issue also affects PySide6. See spyder-ide/qtpy#473 for details. |
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.
Thanks @rear1019 for your help with this!
All my suggestions are related to the style issues found by pep8 speaks. The rest looks good to me.
I took a look at our git history and it's not clear what's the purpose of If that's the case, then please only remove that method in this PR to see if our tests pass. |
Co-authored-by: Carlos Cordoba <[email protected]>
@rear1019, I think the only missing thing here is to remove the |
See [1] for details [1] spyder-ide#21685
@ccordoba12 Sorry for the late reply. I wanted to check something, and something personal came up. Anyway:
Yes, that’s what I figured as well.
Doing that alone won’t help: During startup, I have pushed a commit which completely removes [1] Line 270 in e624b70
[2] Line 273 in e624b70
[3] Line 314 in e624b70
[4] https://github.com/spyder-ide/qtpy/blob/f8f3422a2c8dac3cc235f79d0d1db28d5dd1cf1c/qtpy/_utils.py#L45 |
Thanks for your thorough investigation @rear1019! Since |
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.
Thank @rear1019 for all your efforts to get us ready for Qt6!
I followed the work done in spyder-ide#21685 PySide6 still doesn't work. tested with 6.7.1
I followed the work done in spyder-ide#21685 PySide6 still doesn't work. tested with 6.7.1
Description of Changes
Fixes for Qt 6 compatibility, a PySide2 fix and removal of a Qt 4 check.
Note:
pyqt
or inspyder
. I will provide more information later.super()
[1], however, it is flawed (in the sense that it works differently than in PyQt, see [2]). But: I do have some workarounds which allow the GUI to show up, that is, it looks promising after all.[1] Partially only, in
__init__()
, which suffices as far as Spyder is concerned.[2] https://bugreports.qt.io/browse/PYSIDE-2573
Affirmation
By submitting this Pull Request or typing my (user)name below,
I affirm the Developer Certificate of Origin
with respect to all commits and content included in this PR,
and understand I am releasing the same under Spyder's MIT (Expat) license.
I certify the above statement is true and correct:
rear10