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.
QTAUTOSCREENSCALEFACTOR=0 your_program
or
export QTAUTOSCREENSCALEFACTOR=0 your_program
or
export QTAUTOSCREENSCALEFACTOR=0
your_program