View Single Post
Old 08-11-2022, 08:45 PM   #1
Comfy.n
want to learn what I want
Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.
 
Posts: 1,615
Karma: 7891011
Join Date: Sep 2020
Device: none
QT scaling - Ways to change Environment Variables in Windows

Hi, I've put together some batch commands that should help users address Qt undesired scaling annoyances.

As noted by thiago.eec here, both QT_SCALE_FACTOR_ROUNDING_POLICY = Round and QT_ENABLE_HIGHDPI_SCALING = 0 will work.

There's also a nifty 3rd party utility mentioned by BetterRed.

And here's the path that will work on a shortcut to the native Windows Environment Variables dialog box (needs elevation), where the variables should be added to System Variables:

Code:
%windir%\System32\rundll32.exe sysdm.cpl,EditEnvironmentVariables
Files in the attached zip archive are:
  • 1 - QT_Rounding_Policy.cmd
  • 2 - Restart_explorer.cmd
  • alternative - QT_disable_DPI_scaling.cmd
  • UNDO_variable_insertions.cmd

The second batch file can be used to restart Windows Explorer, as that's enough for the changes to take. (then, of course, restart Calibre)
Attached Files
File Type: zip env vars.zip (1.2 KB, 126 views)

Last edited by Comfy.n; 06-03-2024 at 09:32 AM.
Comfy.n is offline   Reply With Quote