Skip to content

Conversation

cbrnr
Copy link
Contributor

@cbrnr cbrnr commented Jul 25, 2022

The Qt browser backend with PyQt5/PySide2 does not show HiDPI icons, because an attribute needs to be set manually. This does not apply for PySide6/PyQt6, where HiDPI icons are used by default.

@cbrnr cbrnr force-pushed the qt-browser-hidpi-icons branch from e0ac89a to c1ece3c Compare July 25, 2022 16:27
@larsoner
Copy link
Member

Worth a latest.inc update? If not, feel free to merge @cbrnr !

@cbrnr
Copy link
Contributor Author

cbrnr commented Jul 26, 2022

I think we're good, it's a tiny change.

@cbrnr cbrnr merged commit bf7fd47 into mne-tools:main Jul 26, 2022
@cbrnr cbrnr deleted the qt-browser-hidpi-icons branch July 26, 2022 07:04
@cbrnr
Copy link
Contributor Author

cbrnr commented Jul 26, 2022

Hm, now that I've merged, I'm thinking that maybe it would have been better to put the change in mne-qt-browser?

@larsoner
Copy link
Member

I'm thinking that maybe it would have been better to put the change in mne-qt-browser

I think this is the right place -- we have multiple GUIs here that will benefit, too (Brain, coreg, ieeg-gui eventually). Also I'm not too worried about setting this since IIRC matplotlib does, too, when creating its app when you tell it to use a Qt backend

larsoner added a commit to alexrockhill/mne-python that referenced this pull request Jul 27, 2022
* upstream/main:
  FIX: ctf data can sometimes have no date time. (mne-tools#10957)
  replace check_version from _testing.py with the one in check.py (mne-tools#10958)
  ENH:  mne-tools#10542 Adds __eq__() to DigMontage class and updates tests. (mne-tools#10942)
  Use HiDPI icons with PyQt5/PySide2 (mne-tools#10956)
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.

2 participants