In this article we will see how we can get the horizontal resolution of the device in dots per inch(DPI) of the spin box. Logical dots per inch are used to convert font and user interface elements from point sizes to pixel sizes, and might be different from the physical dots per inch.
Note : If the horizontal logical DPI doesn’t equal to the physical horizontal DPI then the corresponding QPaintEngine must handle the resolution mapping.
In order to do this we use logicalDpiX method with the spin box object.
Please Login to comment...