Skip to content

Conversation

@florin-pop
Copy link
Contributor

@florin-pop florin-pop commented Apr 28, 2023

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

@welcome
Copy link

welcome bot commented Apr 28, 2023

Hello! 👋 Thanks for opening your first pull request here! ❤️ We will try to get back to you soon. 🚴

Copy link
Member

@larsoner larsoner left a 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!

@florin-pop
Copy link
Contributor Author

Thank you @larsoner!

Copy link
Member

@larsoner larsoner left a 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 !

@larsoner larsoner enabled auto-merge (squash) April 28, 2023 11:43
@rob-luke
Copy link
Member

🎉 newcontrib 🎉

@larsoner larsoner merged commit 32000d4 into mne-tools:main Apr 28, 2023
@welcome
Copy link

welcome bot commented Apr 28, 2023

🎉 Congrats on merging your first pull request! 🥳 Looking forward to seeing more from you in the future! 💪

@rob-luke rob-luke mentioned this pull request May 14, 2023
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.

3 participants