Skip to content
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

Spyder doesn't render well on HighDpi screens #2119

Closed
spyder-bot opened this issue Feb 17, 2015 · 10 comments
Closed

Spyder doesn't render well on HighDpi screens #2119

spyder-bot opened this issue Feb 17, 2015 · 10 comments

Comments

@spyder-bot
Copy link
Collaborator

From [email protected] on 2015-01-15T10:51:45Z

Please note that reporting bugs from Spyder's help menu ("?" > "Report
issue...") will fill version details for Spyder, Python and Qt in this description for you.

What steps will reproduce the problem?

  1. Using a 4K screen with 3840 x 2160 2. 3.

What is the expected output? What do you see instead?

expect size of windows and consoles to look normal. The biggest issue is in the variable explorer the headers are cut off height-wise. The preference window comes up really small. What version of the product are you using? On what operating system? spyder 2.3.2 py3.4 windows 8.1

Please provide any additional information below

. I am stuck in a class and super bored right now. In reality these issues are incredibly minor. But would be cool if they were fixed. Thanks!

Attachment: spyder screen shot.PNG

Original issue: http://code.google.com/p/spyderlib/issues/detail?id=2119

@spyder-bot spyder-bot added this to the v2.4 milestone Feb 17, 2015
@spyder-bot
Copy link
Collaborator Author

From ccordoba12 on 2015-02-08T11:00:23Z

I don't have access to such a high screen resolution, sorry :-(

Summary: 4K screen resolution issues (was: 4K screen resolution issue)
Labels: Cat-SpyderGUI MS-v2.4

@ccordoba12 ccordoba12 modified the milestones: v3.1, v3.0 Jul 13, 2015
@patstew
Copy link
Contributor

patstew commented Mar 2, 2016

Fingers crossed this sort of thing will get better in Qt 5.6, but in the meantime with Qt 5.4+ it looks much better if you add the following to any qt.conf files in your python directory:

[Platforms]
WindowsArguments = dpiawareness=0

@ccordoba12
Copy link
Member

What does that do?

@patstew
Copy link
Contributor

patstew commented Mar 3, 2016

It tells windows that the application is not DPI aware, which makes windows render it at 'normal' resolution then scale the output image. This makes it look less sharp, but everything is the right size.
By default Qt reports that it is DPI aware, and tries to scale the UI, but still renders anything sized in terms of pixels 1:1, which tends to mean that some ui components are miniscule and others are stretched out of shape.
This is supposedly fixed properly in 5.6 https://doc-snapshots.qt.io/qt5-5.6/highdpi.html

@SylvainCorlay
Copy link
Member

@patstew if you run from master (and use the Spyder 3 icon theme), you will get the hight-dpi bitmaps for the icons.

@Nodd
Copy link
Contributor

Nodd commented Jul 23, 2016

@patstew So is it better with Qt5.6 ?

@patstew
Copy link
Contributor

patstew commented Jul 25, 2016

No, and setting dpiawareness seems to have stopped working too.

@patstew
Copy link
Contributor

patstew commented Jul 29, 2016

Actually I spoke too soon, it's just disabled. You can enable it by setting the QT_AUTO_SCREEN_SCALE_FACTOR environment variable, or I've submitted a change to fix it properly in #3333. It seems pretty good with that change, overall it's 1000x better than before. The fonts are sharp on both screens, and everything is basically the right size. A few things seem to be slightly wrong, like half the e of 'Console' in help source is cut off, and the folder selector is slightly too short for its font, so the anything below the line, like the tail of y or p is cut off. The radio buttons in Preferences are slightly too big when I move it to my second, normal DPI screen. These are just slightly ugly though, I haven't noticed anything as bad as it was yet.

@ccordoba12 ccordoba12 modified the milestones: v3.0beta5, v3.2 Jul 29, 2016
@ccordoba12 ccordoba12 changed the title 4K screen resolution issues Spyder doesn't render well on HighDpi screens Jul 29, 2016
@goanpeca
Copy link
Member

Could you paste some screenshots. We need them for UI related issues.

@patstew
Copy link
Contributor

patstew commented Jul 29, 2016

spyder preferences highdpi
spyder preferences moved to normaldpi screen
spyder
Here you go. I think most of the rendering issues are visible here. The second image shows what happens when I move the preferences dialog to my other 1080p screen from my 4k laptop screen (as in first image). In the image it looks like everything is too small, but actually the fonts in both pictures are the same size. The fact that there's loads of empty space is because Qt keeps windows with the same pixel size when moving to another screen, i.e. a Qt bug. Not really important though. The title bar is bigger than everything else due to a windows bug http://stackoverflow.com/questions/36864894/scaling-the-non-client-area-title-bar-menu-bar-for-per-monitor-high-dpi-suppo. The only thing that's spyder's problem I think is that the radio buttons are bigger than their containing widget. There are a few minor text bugs visible in image 3, as I mentioned in my previous comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants