[Interest] DPI
Allan Sandfeld Jensen
kde at carewolf.com
Sun Feb 23 15:54:05 CET 2014
On Sunday 23 February 2014, igor.mironchik at gmail.com wrote:
> QScreen::physicalDotsPerInch returns the same value as
> QDesktopWidget::physicalDpi.
>
> But why do you think that QScreen::physicalDotsPerInch more reliable?
>
> P.S. I did not look at the Qt code yet, but I guess that I have to do it...
>
QScreen is a more direct source, and it has more raw data. A QWidget can have
been moved from one screen to another, or overlap multiple screens, all making
its screen specific information less direct and more error-prone.
Too bad QScreen didn't have the information you needed though.
`Allan
More information about the Interest
mailing list