In this article we will see how we can get the vertical 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 vertical logical DPI doesn’t equal to the physical vertical DPI then the corresponding QPaintEngine must handle the resolution mapping.
In order to do this we use logicalDpiY method with the spin box object.
Please Login to comment...