You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In above situation, if you drag player window between two screen which have the different display scale setting. It will be rendered to an incorrect rect like this:
The text was updated successfully, but these errors were encountered:
context()->screen() to get the screen which this widget is created on.
If you have two monitor and set them to different Display Scale Factor, It can't work.
I changed this line to :
const qreal dpr = devicePixelRatioF();
The Problem solved.
Mybe other renders have the same problem. but I just use this one.
Mybe someone or author can make a commit to fix it.
:)
The video is not rendered to the correct rect.
QtAV, Official Sample, sampleplayer
Windows 10, QT 5.15.2 mingw32
For supporting non integer sclae factor on windows
E.g. Set Windows / Setting / Display / Scale and Layout to 125% or 175%
You need to set Qt::HighDpiScaleFactorRoundingPolicy::PassThrough to highDpiScaleFactorRoundingPolicy like this :
In above situation, if you drag player window between two screen which have the different display scale setting. It will be rendered to an incorrect rect like this:
The text was updated successfully, but these errors were encountered: