[Interest] High DPI support in QT (Windows)

Thiago Macieira thiago.macieira at intel.com
Thu Sep 24 18:34:58 CEST 2015


On Thursday 24 September 2015 16:17:59 Prav wrote:
> > The user-visible changes are the environment variables:
> >         QT_DEVICE_PIXEL_RATIO: deprecated, and replaced by
> >         QT_SCALE_FACTOR: which takes a numeric scale factor, and
> >         QT_AUTO_SCREEN_SCALE_FACTOR: (bool) reads the OS settings on X11
> >and Windows.
> So   in   future   5.6  the  scale factor will be only integer ... 50%
> larger will not be possible!

Please read the sources to confirm before you cry heaven...

        bool ok;
        const qreal f = qgetenv(scaleFactorEnvVar).toDouble(&ok);

So no, it's not an integer.
-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Interest mailing list