标签:
http://doc.qt.io/qt-5/highdpi.html
QT_DEVICE_PIXEL_RATIO
. It can be set to a numerical value to be used as scale factor or "auto"
which causes the scale factor to be determined by checking the monitor size.
It is recommended to use the Fusion
style.
In order to get an application designed for low DPI values running on a high resolution monitors quickly, consider one of the scaling options (let the application run as DPI Unaware on Windows or set the environment variable QT_DEVICE_PIXEL_RATIO
to "auto"
. These options may incur some scaling or painting artifacts, though.
In the longer term, the application should be adapted to run unmodified:
标签:
原文地址:http://www.cnblogs.com/wucg/p/5274382.html