<div dir="auto"><div><div class="gmail_extra"><div class="gmail_quote">Den 9 feb. 2018 5:56 em skrev "Marcus D. Hanwell" <<a href="mailto:marcus.hanwell@kitware.com">marcus.hanwell@kitware.com</a>>:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div class="quoted-text">On Fri, Feb 9, 2018 at 10:58 AM, Elvis Stansvik <span dir="ltr"><<a href="mailto:elvis.stansvik@orexplore.com" target="_blank">elvis.stansvik@orexplore.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>2018-02-09 15:24 GMT+01:00 Cory Quammen <<a href="mailto:cory.quammen@kitware.com" target="_blank">cory.quammen@kitware.com</a>>:<br>
> Elvis,<br>
><br>
> I don't believe there is a reason we can't use the qreal version of<br>
> devicePixelRatioF(). I think the F may have gotten dropped in a series of<br>
> commits to improve DPI support.<br>
><br>
> A patch would be welcome.<br>
<br>
</span>Great, I'll take a stab at it.<br>
<span class="m_-1243824732570394135HOEnZb"><font color="#888888"><br></font></span></blockquote></div><div>I know for my part I had hoped to work with the fractional API, but only had real examples using integer values. So the real-world examples drove the testing/development we did as we were getting this working in Tomviz. It would be great to collect some examples of non-integer situations we might do some verification on.</div></div></div></div></blockquote></div></div></div><div dir="auto"><br></div><div dir="auto">A simple test for this specific issue I think would be to simply create a QVTKOpenGLWidget with e.g. QT_AUTO_SCREEN_SCALE_FACTOR="1.4" in the environment (assuming the test runs on screen 0) and check that the vtkWindow has the correct size.</div><div dir="auto"><br></div><div dir="auto">Elvis</div><div dir="auto"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div><br></div></div></div>