-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
FIX: Set UseHighDpiPixmaps only for PyQt5 and PySide2 #11662
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
FIX: Set UseHighDpiPixmaps only for PyQt5 and PySide2 #11662
Conversation
|
Hello! 👋 Thanks for opening your first pull request here! ❤️ We will try to get back to you soon. 🚴 |
larsoner
left a comment
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.
Can you just add a quick line to doc/changes/latest.inc with :newcontrib: to the top of the BUG section about improving compat with Qt6 and add your name to doc/changes/names.inc? Then after removing the try I think we can merge!
|
Thank you @larsoner! |
larsoner
left a comment
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.
Will merge when green, thanks @florin-pop !
|
🎉 newcontrib 🎉 |
|
🎉 Congrats on merging your first pull request! 🥳 Looking forward to seeing more from you in the future! 💪 |
Background
In mne-tools/mne-nirs#510 we migrated to
PySide6.When calling
setAttribute(Qt.AA_UseHighDpiPixmaps)there is a warning as this attribute was deprecated in QT6 and it has no effect as HiDPI is enabled by default.What does this implement/fix?
One way of solving the issue, as suggested by @larsoner in mne-tools/mne-nirs#510 (comment) is to check the QT version and set the attribute conditionally.
Contributed with ❤️ by AE Studio