![]() |
#1 |
want to learn what I want
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,605
Karma: 7511185
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
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) Last edited by Comfy.n; 06-03-2024 at 09:32 AM. |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,378
Karma: 78877538
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
Are you aware of the windows SETX command that can manage the system environment variables?
See https://docs.microsoft.com/en-us/win...-commands/setx Sent from my Pixel 4a using Tapatalk |
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
want to learn what I want
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,605
Karma: 7511185
Join Date: Sep 2020
Device: none
|
Quote:
![]() credits: https://stackoverflow.com/questions/...h-a-batch-file https://superuser.com/questions/1245...h-a-batch-file I forgot to add that this Windows setting seems important to check out, as well, noting that each use case might require a different setting, as DNSB reported here: https://superuser.com/questions/1230...e-command-line Last edited by Comfy.n; 08-19-2022 at 03:18 AM. |
|
![]() |
![]() |
![]() |
#4 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,378
Karma: 78877538
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
oops.sorry. I'd seen the command to invoke the sysdm.cpl and had assumed thatyour batch file was using it
![]() |
![]() |
![]() |
![]() |
#5 |
want to learn what I want
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,605
Karma: 7511185
Join Date: Sep 2020
Device: none
|
|
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Bypass Windows 10 custom scaling? | Comfy.n | Calibre | 3 | 08-08-2022 01:21 PM |
Negating the Effect of Windows Text Scaling on Conversion | Waldovski | Conversion | 1 | 04-25-2018 11:03 AM |
Sony font scaling : time to change? | jotas | Sony Reader | 9 | 09-07-2009 09:08 PM |
Windows Develpment Environment issue | itimpi | Calibre | 20 | 01-17-2009 07:15 PM |
PDF scaling gets lost when margins change | dna2z | Sony Reader | 5 | 11-29-2006 10:20 PM |