I just found the "physicalDotsPerInch()" Qt method, in my case it reports ~90 dpi. I have updated the gist. It seems we should combine the dpi value and the screen size and compute a reasonable default out of them.