IceGuye Blog

A Possibly Qt Bug of HiDPI Detection

Currently, there may be a bug in QT that causes the HiDPI detection going wrong. Here is a temporary workaround.

If you are using a normal computer screen but getting a very large qt UI window, you can add following environment to disable this function before running your program.

(A normal UI.)

(A large UI, which is wrong.)

QTAUTOSCREENSCALEFACTOR=0 your_program

or

export QTAUTOSCREENSCALEFACTOR=0 your_program

or

export QTAUTOSCREENSCALEFACTOR=0 your_program




Back to Blog's index