When calculating layout geometry based on the pixmap size, one needs to divide by devicePixelRatio
devicePixelRatio
Before at 3x
After
Also works fine at 2x and 1x