[Interest] DPI

Thiago Macieira thiago.macieira at intel.com
Tue Feb 25 18:53:59 CET 2014


Em ter 25 fev 2014, às 13:07:27, Jan Kundrát escreveu:
> On Sunday, 23 February 2014 13:24:54 CEST, igor.mironchik at gmail.com wrote:
> > QApplication::desktop()->physicalDpiY()
> 
> In addition to what has already been said, note that the value is not
> updated after the application has started. In X11, the actual DPI can very
> well change (for example when switching outputs via xrandr), but Qt won't
> react to that.

Qt 5 does react to it.

But note that very often the DPI is set fixed by X settings, regardless of 
actual monitor sizes.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Interest mailing list