Qt WebView with unexpected dimensions
-
Hello,
I'm using a WebView in QML within a container Rectangle.
The dimensions of the Rectangle are set to the available width and height of the screen.Those dimensions look correct on all elements, except the WebView on iOS specifically.
I'd have to set the width of the WebView to pretty much exactly 75% of the screen width to get a good fit. I'm currently dividing the width value by 1.33 to get a value that looks good on my test device.
What is the reason for this? And does this ratio apply to all iOS devices?
-
Hello,
I'm using a WebView in QML within a container Rectangle.
The dimensions of the Rectangle are set to the available width and height of the screen.Those dimensions look correct on all elements, except the WebView on iOS specifically.
I'd have to set the width of the WebView to pretty much exactly 75% of the screen width to get a good fit. I'm currently dividing the width value by 1.33 to get a value that looks good on my test device.
What is the reason for this? And does this ratio apply to all iOS devices?
It was an oversight on my part. I did not consider that my high DPI scaling settings might have this effect.
Enabling high DPI scaling and letting the OS scale factor pass through can have this effect when not considering this when setting positions and sizes.Leaving the high DPI scale factor rounding policy on its default value resolves this issue.
-
N NaLogo has marked this topic as solved on