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

From: Viktor Trojanovic <viktor(at)troja(dot)ch>
To: Dave Page <dpage(at)pgadmin(dot)org>
Cc: "pgadmin-support(at)postgresql(dot)org" <pgadmin-support(at)postgresql(dot)org>
Subject: Re: pgAdmin 4 v1.0: Problems with high dpi scaling on Win10
Date: 2016-10-14 09:42:46
Message-ID: CAL=ybPDT=fQpFk-MFVTbr_+U0+04ikkS4=Yng-Pj6pzG-k+t5g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support

On Mon, Oct 3, 2016 at 1:44 PM, Dave Page <dpage(at)pgadmin(dot)org> wrote:

> On Mon, Oct 3, 2016 at 12:32 PM, Dave Page <dpage(at)pgadmin(dot)org> wrote:
> > On Mon, Oct 3, 2016 at 11:33 AM, Viktor Trojanovic <viktor(at)troja(dot)ch>
> wrote:
> >> On Mon, Oct 3, 2016 at 11:01 AM, Dave Page <dpage(at)pgadmin(dot)org> wrote:
> >>>
> >>> Hi
> >>>
> >>> On Sun, Oct 2, 2016 at 11:43 PM, <viktor(at)troja(dot)ch> wrote:
> >>> > Hi list, hi Dave,
> >>> >
> >>> > On Windows 10 using a high res screen with high dpi scaling turned on
> >>> > and
> >>> > set to 200%, the text in the pgAdmin 4 (standalone) interface becomes
> >>> > almost
> >>> > illegible.
> >>> >
> >>> > The issue seems to be that pgAdmin claims to Windows that is high dpi
> >>> > aware
> >>> > when it actually isn’t. See http://doc.qt.io/qt-5/highdpi.html for
> more
> >>> > info
> >>> > about how QT deals with high dpi issues.
> >>>
> >>> I think it's more subtle than that. Most of the dev team run Macs, and
> >>> high dpi support seems to work fine for us. We have had some issues
> >>> reported - but on my retina MBP for example, pgAdmin displays nicely
> >>> at all scaling levels.
> >>>
> >>> > The short term solution would be to make the app dpi unaware, thus
> >>> > letting
> >>> > Windows take care of the scaling.
> >>>
> >>> Have you tried setting QT_AUTO_SCREEN_SCALE_FACTOR? Does it make a
> >>> difference on Windows?
> >>>
> >>
> >> I can confirm that setting the environment variable
> >> QT_AUTO_SCREEN_SCALE_FACTOR=1, or 0 for that matter, makes no
> difference.
> >>
> >> I even tried setting the following parameters in your qt.conf:
> >>
> >> [Platforms]
> >> WindowsArguments = dpiawareness=0 (and 1, and 2)
> >>
> >> without any effect.
> >
> > :-(. OK, thanks - I've added this thread to
> > https://redmine.postgresql.org/issues/1564 where we're tracking issues
> > related to this.
>
> I just figured out how to reproduce this on Windows - it seems like
> VMware was confusing matters, but I can see the problem now. I'll
> update the ticket.
>
> BTW; whilst it won't affect the runtime titlebar etc. are you aware
> you can use Ctrl+ (depending on your keyboard, you may need to hit
> Shift as well to get Ctrl+ rather than Ctrl=) and Ctrl- to zoom the
> display? That will allow you to get it to a usable size.
>
>
Hi Dave,

Sorry for the late reply.

No, I wasn't aware of this. I was trying to do this using the scrollwheel
on my mouse while pressing the CTRL-Key, without success. But just using
the key combo CTRL-+ works perfectly, it basically solves my problem.
Thanks for the hint!

Viktor

In response to

Browse pgadmin-support by date

  From Date Subject
Next Message Johann Spies 2016-10-14 10:01:45 Re: Object browser does not show all views
Previous Message Ashesh Vashi 2016-10-14 09:23:07 Re: Object browser does not show all views