Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
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,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
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, 120 views)

Last edited by Comfy.n; 06-03-2024 at 09:32 AM.
Comfy.n is offline   Reply With Quote
Old 08-11-2022, 09:10 PM   #2
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
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
PeterT is offline   Reply With Quote
Advert
Old 08-11-2022, 09:29 PM   #3
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,605
Karma: 7511185
Join Date: Sep 2020
Device: none
Quote:
Originally Posted by PeterT View Post
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
uhum, that's what I'm using on the batch files in the zip

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.
Comfy.n is offline   Reply With Quote
Old 08-11-2022, 10:26 PM   #4
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
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
PeterT is offline   Reply With Quote
Old 08-11-2022, 11:20 PM   #5
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,605
Karma: 7511185
Join Date: Sep 2020
Device: none
Quote:
Originally Posted by PeterT View Post
oops.sorry. I'd seen the command to invoke the sysdm.cpl and had assumed thatyour batch file was using it
np

and thank you for the reference to the setx documentation!

BTW, new Calibre 6.3 version is available, wheeeeeeee
Comfy.n is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 02:43 PM.


MobileRead.com is a privately owned, operated and funded community.