This can be re-produced in with the attached code in a multi desktop system with different dpi settings. (qtdiag.txt attached).