-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
6.9.1
When using the 'windowsvista' style on a monitor that is using 150% DPI scaling, hovering the mouse over the widgets causes them to 'flicker' or 'jitter'.
It looks as though some parts of the hover animation are scaling for 150% and other parts are scaling for 100%. I believe this discrepency is causing the 'jitter'.
I have noticed that if I use the setting:
QGuiApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::Round);
Then the 'jitter' goes away, presumably because both parts are now being rounded to use 100% scaling. Unfortunately that rounding setting messes up some of our other widgets so it isnt a good solution for us.
To reproduce this bug:
- Use a Windows 11 machine
- I belive it happens on Windows 10 also
- Use a monitor with %150 DPI scalling.
- It does also happen with %250, etc, though it is not as noticeable.
- It does also happen with multiple screens, but to keep things simple, I am using only 1 screen.
- Compile the attached program with Qt Creator and use the kit 'Desktop Qt 6.9.1 MSVC2022 64bit'
- This kit comes 'built in' with a stock installation of Qt 6.9.1 on Windows.
- Run the program and move the mouse over the widgets.
Expected:
The normal hovering animation plays smoothly.
Actual:
The hovering animation 'jitters' around while it plays, then the widget returns to normal once the animation is over.