-
Notifications
You must be signed in to change notification settings - Fork 172
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
Windows - Additional scaling settings required with a multi-monitor setup #391
Comments
Thanks for reporting this, please leave the issue open so people will see it on a search. Going trough the Qt docs it seems we will need to do some changes to support hidpi http://doc.qt.io/qt-5/highdpi.html#migration-of-existing-applications some of the environment vars there might help too. |
FWIW I am running into the same behavior but in an RDP scenario; I don't expect it to affect the solution but mentioning still :). Cheers |
I cannot test this since I dont have hidpi. If someone could test a bit with the Qt environment variables that would be great.
the first one is likely the most interesting. One thing which is not 100% clear from the screenshots is whether the text is being rendered too small or too big (i.e. is the size of everything else but the fonts is wrong?). |
Just tested with |
From the Qt docs, this should be the same as setting QT_AUTO_SCREEN_SCALE_FACTOR, which #391 reports as fixing hidpi multimonitor in Windows. The Qt attribute AA_EnableHighDpiScaling was only added in Qt 5.6 so this patch has no effect when using earlier versions.
@equalsraf I've never embarked upon building, let alone on windows, but I can give it a shot tonight when im on my own computer |
No need to build from source, Appveyor provides us with builds for all PRs. If you check #459, there is a the direct link is
or you can build from source anyway ^^ |
@equalsraf Thanks for the link; just tested it out and it doesn't appear to work. I am testing on a laptop with a smallish 4K display and an external, larger 4K display. Noticeably different DPI. With your executable, if I don't set the |
Ok, thanks for checking. That is really strange, maybe I'm missing something on the Qt docs. But all references I could find suggest the flag should work. |
For now I'm setting this in windows only, there open issues in upstream Qt that suggests this may have unexpected effects in other systems (QTBUG-65061, QTBUG-65102), also QTBUG-63580 offers contradictory information with what we have experienced. The other way to do this is to set Qt::AA_EnableHighDpiScaling but it does not seem to work on Windows. But it seems this does not work on windows (#391).
For now I'm setting this in windows only, there open issues in upstream Qt that suggests this may have unexpected effects in other systems (QTBUG-65061, QTBUG-65102), also QTBUG-63580 offers contradictory information with what we have experienced. The other way to do this is to set Qt::AA_EnableHighDpiScaling but it does not seem to work on Windows. But it seems this does not work on windows (#391).
System Information
nvim-qt.exe
properties lists the Date Modified as2017-11-18 14:39
. The File Properties dialog doesn't include an actual version due to Include version/build number in nvim-qt.exe #255.Problem Description and Reproduction Steps
I am using multiple monitors on Windows 10. The primary monitor is set to scale 200% at 2880x1800 resolution. Two secondary monitors scale 100% at 1920x1080 resolution.
Starting and running
nvim-qt.exe
on the first (and primary) monitor works, as intended.Running
nvim-qt.exe
on either of the secondary monitors, or moving the window from the first to either of the secondary monitors, introduces scaling artifacts.The default installation, performed through Chocolatey, does not have any specific DPI scaling overrides specified in the File Properties dialogue.
Modifying the "Override high DPI scaling behavior. Scaling performed by:" setting, and setting it to "System (Enhanced)", appears to fix the issue.
Conclusion
The executable doesn't appear to set any specific DPI settings. It's my hope that QT offers an easy way to configure application-level scaling.
Is there a doc-page I should append this to?
The text was updated successfully, but these errors were encountered: