In the documentation of QPaintDevice (which all paintable-to entities derive from, such as QWidget, QPixmap, etc), there are two functions to receive the DPI of the device
int logicalDpiX() const;
int physicalDpiX() const;
int logicalDpiY() const;
int physicalDpiY() const;
The documentation says
The logicalDpiX() and logicalDpiY() functions return the horizontal and vertical resolution of the device in dots per inch. The physicalDpiX() and physicalDpiY() functions also return the resolution of the device in dots per inch, but note that if the logical and physical resolution differ, the corresponding QPaintEngine must handle the mapping. Finally, the colorCount() function returns the number of different colors available for the paint device.
Despite this description, I still don't understand what the purpose of the difference is. Can someone please shed some light on this?