[Development] The QT_SCREEN_SCALE_FACTORS rounding problem is still annoyingly valid
Ilya Fedin
fedin-ilja2010 at ya.ru
Fri Mar 24 23:11:49 CET 2023
On Wed, 15 Feb 2023 14:19:29 +0000
Morten Sørvig via Development <development at qt-project.org> wrote:
> On 27 Jan 2023, at 18:04, Ilya Fedin <fedin-ilja2010 at ya.ru> wrote:
>
>
>
> My patch doesn't modify setScreenFactor, so the rounding is applied
> only to the variable value (and to the property on QScreen object, as
> it's the only remaining source without rounding in
> QHighDpiScaling::screenSubfactor), so the programmatic calls of
> QHighDpiScaling::setScreenFactor are unaffected.
>
> However, it still rounds the value when reading it, and so
> tst_QQmlPreview::zoom() gets a rounded value and fails. At least
> that’s what I’m seeing.
>
> Here’s a new attempt: round the value when applying from the env.
> variable, outside of setScreenFactor() which now keeps its existing
> behavior:
>
> https://codereview.qt-project.org/c/qt/qtbase/+/460566
>
> Morten
>
>
It seems the change has stuck in +2 state for a month as well as the
fix for QT_WIDGETS_HIGHDPI_DOWNSCALE
More information about the Development
mailing list