[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-kimageshop
Subject:    Re: windows hdpi support & opengl
From:       Dmitry Kazakov <dimula73 () gmail ! com>
Date:       2016-04-15 16:18:54
Message-ID: CAEkBSfX0vNr_nhsFVt7yAnkQ__cieyDfYDkVXwupC=rS2=xaMA () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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.

On Thu, Apr 14, 2016 at 4:52 PM, Boudewijn Rempt <boud@valdyas.org> wrote:

> 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
> had complaints, but for Windows there's this bug:
>
> https://bugs.kde.org/show_bug.cgi?id=360541
>
> If I enable
>
>  QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
>
> as is done in
>
>  http://files.kde.org/krita/3/windows/krita3-prealpha3-de0d43d.zip
>
> Users complain that if they enable 150% or 200% display scaling both
> the opengl-based and the cpu, qpainter-based canvas are wrong: the
> image is also displayed at 150% or 200%.
>
> This is the same image at 100% zoom with scaling:
>
> http://imgur.com/shQ8iyw
>
> when the option is disabled as in
>
>  http://files.kde.org/krita/3/windows/krita-2.99.89.zip
>
> All the ui elements are wrong and sometimes even the svg icons
> aren't scaled correctly.
>
> http://imgur.com/VqoSg59
>
> Is there a way I can enable the hidpi scaling for the ui elements,
> but handle the opengl and qpainter canvas widget on my own? I'm
> looking at http://doc.qt.io/qt-5/highdpi.html which explains why
> there's no problem on OSX, with the OpenGL canvas enabled, but not
> how I can correctly render images on Windows.
>
> --
> Boudewijn Rempt | http://www.krita.org, http://www.valdyas.org
> _______________________________________________
> Krita mailing list
> kimageshop@kde.org
> https://mail.kde.org/mailman/listinfo/kimageshop
>



-- 
Dmitry Kazakov

[Attachment #5 (text/html)]

<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&#39;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">&lt;<a href="mailto:boud@valdyas.org" \
target="_blank">boud@valdyas.org</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">I&#39;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&#39;t<br> \
had complaints, but for Windows there&#39;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&#39;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&#39;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&#39;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>


[Attachment #6 (text/plain)]

_______________________________________________
Krita mailing list
kimageshop@kde.org
https://mail.kde.org/mailman/listinfo/kimageshop


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic