pgAdmin 4 v1.0: Problems with high dpi scaling on Win10

Поиск
Список
Период
Сортировка
От
Тема pgAdmin 4 v1.0: Problems with high dpi scaling on Win10
Дата
Msg-id 57f18d79.0cce1c0a.95f46.3eb4@mx.google.com
обсуждение исходный текст
Ответы Re: pgAdmin 4 v1.0: Problems with high dpi scaling on Win10  (Dave Page <dpage@pgadmin.org>)
Список pgadmin-support
<div class="WordSection1"><p class="MsoNormal"><span lang="EN-US">Hi list, hi Dave, </span><p class="MsoNormal"><span
lang="EN-US"> </span><pclass="MsoNormal"><span lang="EN-US">On Windows 10 using a high res screen with high dpi scaling
turnedon and set to 200%, the text in the pgAdmin 4 (standalone) interface becomes almost illegible. </span><p
class="MsoNormal"><spanlang="EN-US"> </span><p class="MsoNormal"><span lang="EN-US">The issue seems to be that pgAdmin
claimsto Windows that is high dpi aware when it actually isn’t. See <a
href="http://doc.qt.io/qt-5/highdpi.html">http://doc.qt.io/qt-5/highdpi.html</a>for more info about how QT deals with
highdpi issues. </span><p class="MsoNormal"><span lang="EN-US"> </span><p class="MsoNormal"><span lang="EN-US">The
shortterm solution would be to make the app dpi unaware, thus letting Windows take care of the scaling. </span><p
class="MsoNormal"><spanlang="EN-US"> </span><p class="MsoNormal"><span lang="EN-US">Here an extract of the page above
thatseems relevant here:</span><p class="MsoNormal"><span lang="EN-US"> </span><p class="MsoNormal"><span
lang="EN-US">---snip---</span><pclass="MsoNormal"><span lang="EN-US">In order to get an application designed for low
DPIvalues running on a high resolution monitors quickly, consider one of the scaling options (let the application run
asDPI Unaware on Windows or set the environment variable QT_AUTO_SCREEN_SCALE_FACTOR to "1". These options may incur
somescaling or painting artifacts, though.</span><p class="MsoNormal"><span lang="EN-US"> </span><p
class="MsoNormal"><spanlang="EN-US">In the longer term, the application should be adapted to run unmodified:</span><p
class="MsoListParagraph"style="text-indent:-18.0pt;mso-list:l0 level1 lfo1"><span lang="EN-US"><span
style="mso-list:Ignore">-<spanstyle="font:7.0pt "Times New Roman"">          </span></span></span><span
lang="EN-US">Alwaysuse the qreal versions of the QPainter drawing API.</span><p class="MsoListParagraph"
style="text-indent:-18.0pt;mso-list:l0level1 lfo1"><span lang="EN-US"><span style="mso-list:Ignore">-<span
style="font:7.0pt"Times New Roman"">          </span></span></span><span lang="EN-US">Size windows and dialogs in
relationto the screen size.</span><p class="MsoListParagraph" style="text-indent:-18.0pt;mso-list:l0 level1 lfo1"><span
lang="EN-US"><spanstyle="mso-list:Ignore">-<span style="font:7.0pt "Times New Roman"">         
</span></span></span><spanlang="EN-US">Replace hard-coded sizes in layouts and drawing code by values calculated from
fontmetrics or screen size</span><p class="MsoNormal"><span lang="EN-US">---snip---</span><p class="MsoNormal"><span
lang="EN-US"> </span><pclass="MsoNormal"><span lang="EN-US">pgAdmin III is not affected as it is clearly not dpi aware
andtherefore scaled by Windows. This leads to blurred text and icons but at least it’s big enough to be legible.
</span><pclass="MsoNormal"><span lang="EN-US"> </span><p class="MsoNormal"><span lang="EN-US">Viktor</span></div> 

В списке pgadmin-support по дате отправления:

Предыдущее
От: Ashesh Vashi
Дата:
Сообщение: Re: pgAdmin4
Следующее
От: Laczkóczki Ákos
Дата:
Сообщение: Cannot launch pgAdmin4