I have:
Qt Code:
  1. chrisw@newton /tmp/test/m $ ./m
  2. Running in CONSOLE mode
  3. physicalDpi: x=75 y=75
  4. logicalDpi: x=75 y=75
  5. chrisw@newton /tmp/test/m $ ./m 1
  6. Running in GUI mode
  7. physicalDpi: x=93 y=95
  8. logicalDpi: x=93 y=95
To copy to clipboard, switch view to plain text mode 
on my Linux box. I used
Qt Code:
  1. image.setDotsPerMeterX(3937);
  2. image.setDotsPerMeterY(3937);
To copy to clipboard, switch view to plain text mode 
to set 100DPI and the resulting saved images had the same DPI figures installed (and hence the same 'print size'). The distinction is only really relevant if you are going to put the image pixel-for-pixel onto a device with a different DPI and expect the same physical dimensions on the image.