<div dir="ltr">Last time I tried, it worked somewhat ok with master + Qt 5.6 RC, not beta. With Qt 5.5 it didn't work at all.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 14, 2016 at 4:52 PM, Boudewijn Rempt <span dir="ltr"><<a href="mailto:boud@valdyas.org" target="_blank">boud@valdyas.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'm trying to make Krita work correctly on hi-dpi windows screens like the Surface Pro 3 and 4. On OSX with Retina support, I haven't<br>
had complaints, but for Windows there's this bug:<br>
<br>
<a href="https://bugs.kde.org/show_bug.cgi?id=360541" rel="noreferrer" target="_blank">https://bugs.kde.org/show_bug.cgi?id=360541</a><br>
<br>
If I enable<br>
<br>
 QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);<br>
<br>
as is done in<br>
<br>
 <a href="http://files.kde.org/krita/3/windows/krita3-prealpha3-de0d43d.zip" rel="noreferrer" target="_blank">http://files.kde.org/krita/3/windows/krita3-prealpha3-de0d43d.zip</a><br>
<br>
Users complain that if they enable 150% or 200% display scaling both<br>
the opengl-based and the cpu, qpainter-based canvas are wrong: the<br>
image is also displayed at 150% or 200%.<br>
<br>
This is the same image at 100% zoom with scaling:<br>
<br>
<a href="http://imgur.com/shQ8iyw" rel="noreferrer" target="_blank">http://imgur.com/shQ8iyw</a><br>
<br>
when the option is disabled as in<br>
<br>
 <a href="http://files.kde.org/krita/3/windows/krita-2.99.89.zip" rel="noreferrer" target="_blank">http://files.kde.org/krita/3/windows/krita-2.99.89.zip</a><br>
<br>
All the ui elements are wrong and sometimes even the svg icons<br>
aren't scaled correctly.<br>
<br>
<a href="http://imgur.com/VqoSg59" rel="noreferrer" target="_blank">http://imgur.com/VqoSg59</a><br>
<br>
Is there a way I can enable the hidpi scaling for the ui elements,<br>
but handle the opengl and qpainter canvas widget on my own? I'm<br>
looking at <a href="http://doc.qt.io/qt-5/highdpi.html" rel="noreferrer" target="_blank">http://doc.qt.io/qt-5/highdpi.html</a> which explains why<br>
there's no problem on OSX, with the OpenGL canvas enabled, but not<br>
how I can correctly render images on Windows.<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Boudewijn Rempt | <a href="http://www.krita.org" rel="noreferrer" target="_blank">http://www.krita.org</a>, <a href="http://www.valdyas.org" rel="noreferrer" target="_blank">http://www.valdyas.org</a><br>
_______________________________________________<br>
Krita mailing list<br>
<a href="mailto:kimageshop@kde.org" target="_blank">kimageshop@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/kimageshop" rel="noreferrer" target="_blank">https://mail.kde.org/mailman/listinfo/kimageshop</a><br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">Dmitry Kazakov</div>
</div>