Unsolved Modify the variable QT_SCALE_FACTOR when the program is running
-
Hi!
In an application, I use the qputenv command in my main.cpp file to fix the size of my QML dialog boxes
qputenv("QT_SCALE_FACTOR",scale);
There are two problems:
-
The command crashes the program under macos if scale != 1.0
-
Since it is only possible to change the system variable QT_SCALE_FACTOR when the program starts, I can no longer use this way to change the size of the boxes once the program has started.
Is there another way to act on the variable QT_SCALE_FACTOR? or to act on the same parameter when the program is running?
With my thanks,
-
-
@Francky033
Take a look at https://stackoverflow.com/a/44003927/489865
? -
Thanks JonB! This is exactly what I'm looking for!