NotepadNext icon indicating copy to clipboard operation
NotepadNext copied to clipboard

HiDPI QT workaround in Windows

Open FadeMind opened this issue 3 years ago • 2 comments

NotepadNext.cmd

:: NotepadNext.cmd :

set QT_SCALE_FACTOR=0
set QT_AUTO_SCREEN_SCALE_FACTOR=0
set "QT_SCREEN_SCALE_FACTORS=DISPLAY2=1;DISPLAY1=1"

start "" "NotepadNext.exe"

NORMAL 20220420-1650462018

FIX FROM CMD 20220420-1650462042

FadeMind avatar Apr 20 '22 13:04 FadeMind

@FadeMind

Thanks for info! My understanding is Qt6 handles scaling differently vs Qt5.

If you get a chance try this Qt6 snapshot build to see if the behavior is any better for you without the need for environment varaibles?

https://github.com/dail8859/NotepadNext/suites/6189635741/artifacts/217956067

I'll have to read up on high DPI in Qt because I thought this was suppose to make high DPI scaling work...guess not.

https://github.com/dail8859/NotepadNext/blob/3477b35e484376c0bfa3331c7f8d1dc5305b39b5/src/NotepadNext/main.cpp#L41-L44

dail8859 avatar Apr 20 '22 13:04 dail8859

@dail8859 I have 2K display here with 150% scalling (default) 20220420-1650478259

FadeMind avatar Apr 20 '22 18:04 FadeMind