Em ter 25 fev 2014, às 13:07:27, Jan Kundrát escreveu: > On Sunday, 23 February 2014 13:24:54 CEST, igor.mironc...@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 _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest