mudlet-makers team mailing list archive
-
mudlet-makers team
-
Mailing list archive
-
Message #04250
Re: [Bug 1652413] [NEW] DPI Awareness/Scaling Issues (Win10)
-
To:
mudlet-makers@xxxxxxxxxxxxxxxxxxx
-
From:
Stephen Lyons <slysven@xxxxxxxxxxxxxxx>
-
Date:
Sun, 25 Dec 2016 10:29:19 +0000
-
In-reply-to:
<CAK-8PPR8dJnsGinSk9zr=m6gQA05LeHaRCOV4SXyOSk01gP_qw@mail.gmail.com>
-
User-agent:
Mozilla/5.0 (Windows NT 6.0; rv:45.0) Gecko/20100101 Thunderbird/45.3.0
Does this manifest on that other platform that now offers extra high
resolution displays (a.k.a. "Retina") i.e. MacOS?
If we go for the solution involving:
"QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);" we will
need to wrap it in "#if QT_VERSION >= 0x050600"..."#endif" so it doesn't
throw a complier error on older versions (e.g. the 5.0.2 that is used by
the Travis C.I. system for Linux testing)...
Sent by E-mail
On 24/12/2016 02:26, Vadim Peretokin wrote:
> Could you attach screenshots? I don't think any developers have a 4K
> display.
>
> On Sat, 24 Dec 2016 11:45 am Colin Gannon, <cmgannon26@xxxxxxxxx> wrote:
>
>> Public bug reported:
>>
>> Summary:
>> Mudlet exhibits behavior associated with static size values (in pixels) in
>> the Qt GUI widgets rather than using relative values. Additionally, the
>> application does not specify DPI awareness such that Qt autoscales the
>> application using the native Windows display APIs.* As such, the UI is,
>> while usable, not properly rendered which breaks third-party UI add-ons
>> produced by the community.
>>
>> *More info here: http://doc.qt.io/qt-5/highdpi.html
>>
>> Recommended remediation (up for discussion!):
>> While an effort to convert Mudlet's QML to relative values would be the
>> "right" fix, the autoscaling provided by Qt 5.6+ and Windows 8.1+ allow for
>> one of the following:
>>
>> The addition of a qt.conf directive to specify an equivalent of the
>> following (passed at runtime, instructs Windows to treat the application as
>> non-DPI aware and to scale it automatically):
>> -platform windows:dpiawareness=0
>>
>> OR
>>
>> The addition of the following property setter for Windows builds to
>> achieve the same goal as option #1:
>> QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
>>
>> Steps to reproduce:
>> Run the application on a High DPI Windows 10 machine such as a Microsoft
>> Surface or 4K display with scaling enabled and set to a value other than
>> 100%. Observe the UI scaling issues in the splash frame and Connections
>> frame - particularly cut off text and oddly shaped fields/tiny small icons.
>>
>> I have tested the -platform windows:dpiawareness=0 solution and it's
>> working with Mudlet3-iota built against Qt5.6 on Windows 10 following
>> the wiki instructions. I am building and testing the second (probably
>> preferable) fix.
>>
>> ** Affects: mudlet
>> Importance: Undecided
>> Status: New
>>
>>
>> ** Tags: gui
>>
>> --
>> You received this bug notification because you are a member of Mudlet
>> Makers, which is subscribed to Mudlet.
>> https://bugs.launchpad.net/bugs/1652413
>>
>> Title:
>> DPI Awareness/Scaling Issues (Win10)
>>
>> Status in Mudlet:
>> New
>>
>> Bug description:
>> Summary:
>> Mudlet exhibits behavior associated with static size values (in pixels)
>> in the Qt GUI widgets rather than using relative values. Additionally, the
>> application does not specify DPI awareness such that Qt autoscales the
>> application using the native Windows display APIs.* As such, the UI is,
>> while usable, not properly rendered which breaks third-party UI add-ons
>> produced by the community.
>>
>> *More info here: http://doc.qt.io/qt-5/highdpi.html
>>
>> Recommended remediation (up for discussion!):
>> While an effort to convert Mudlet's QML to relative values would be the
>> "right" fix, the autoscaling provided by Qt 5.6+ and Windows 8.1+ allow for
>> one of the following:
>>
>> The addition of a qt.conf directive to specify an equivalent of the
>> following (passed at runtime, instructs Windows to treat the application as
>> non-DPI aware and to scale it automatically):
>> -platform windows:dpiawareness=0
>>
>> OR
>>
>> The addition of the following property setter for Windows builds to
>> achieve the same goal as option #1:
>> QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
>>
>> Steps to reproduce:
>> Run the application on a High DPI Windows 10 machine such as a Microsoft
>> Surface or 4K display with scaling enabled and set to a value other than
>> 100%. Observe the UI scaling issues in the splash frame and Connections
>> frame - particularly cut off text and oddly shaped fields/tiny small icons.
>>
>> I have tested the -platform windows:dpiawareness=0 solution and it's
>> working with Mudlet3-iota built against Qt5.6 on Windows 10 following
>> the wiki instructions. I am building and testing the second (probably
>> preferable) fix.
>>
>> To manage notifications about this bug go to:
>> https://bugs.launchpad.net/mudlet/+bug/1652413/+subscriptions
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~mudlet-makers
>> Post to : mudlet-makers@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~mudlet-makers
>> More help : https://help.launchpad.net/ListHelp
>>
Attachment:
signature.asc
Description: OpenPGP digital signature
References