HomePhabricator

qt: Set AA_EnableHighDpiScaling attribute early

Description

qt: Set AA_EnableHighDpiScaling attribute early

Summary:

Enables high-DPI scaling in Qt on supported platforms (see also High DPI
Displays). Supported platforms are X11, Windows and Android. Enabling
makes Qt scale the main (device independent) coordinate system according
to display scale factors provided by the operating system. This
corresponds to setting the QT_AUTO_SCREEN​_SCALE_FACTOR environment
variable to 1. This attribute must be set before QGuiApplication is
constructed. This value was added in Qt 5.6.

Backport of core PR16254.

Fixes https://github.com/Bitcoin-ABC/bitcoin-abc/issues/378

Test Plan:

ninja check-bitcoin-qt

Run bitcoin-qt with Qt > 5.12.4 and check the warning is gone.

Reviewers: #bitcoin_abc, rex4539

Reviewed By: rex4539

Subscribers: rex4539

Differential Revision: https://reviews.bitcoinabc.org/D5744

Details

Provenance
Hennadii Stepanov <32963518+hebasto@users.noreply.github.com>Authored on Jun 20 2019, 18:24
FabienCommitted on Apr 16 2020, 13:15
FabienPushed on Apr 16 2020, 13:15
Reviewer
rex4539
Differential Revision
D5744: qt: Set AA_EnableHighDpiScaling attribute early
Parents
rABCc2f25f421ecf: [Automated] Update timing.json
Branches
Unknown
Tags
Unknown

Event Timeline