Home > Mobile >  Adaptive QT5.7 high DPI
Adaptive QT5.7 high DPI

Time:10-05

In low resolution on the machine, display is normal, but the high resolution, hope that the visual effect of font, that is to say, in the resolution of 1000 * 500 to 2000 * 1000 resolution, and word of pixels multiplied, what should I do? Set the environment variable, QGuiApplication: : setAttribute (Qt: : AA_EnableHighDpiScaling); What is useless,

CodePudding user response:

I, too, set up also useless!

CodePudding user response:

QGuiApplication: : setAttribute (Qt: : AA_EnableHighDpiScaling) this code should be put in the main function of the first row,

CodePudding user response:

I, too, set up
 QGuiApplication: : setAttribute (Qt: : AA_EnableHighDpiScaling); 

Also useless, seems to only support Android program

CodePudding user response:

refer to the second floor feiyangqingyun response:
QGuiApplication: : setAttribute (Qt: : AA_EnableHighDpiScaling) this code should be put in the main function of the first row,
tried really feasible, Qt 5.10
  •  Tags:  
  • Qt
  • Related