Running bitcoin-qt
compiled against Qt 5.12.4 causes a warning:
0hebasto@bionic-qt:~/bitcoin$ src/qt/bitcoin-qt
1Attribute Qt::AA_EnableHighDpiScaling must be set before QCoreApplication is created.
This PR fixes this issue.
From Qt docs:
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 beforeQGuiApplication
is constructed. This value was added in Qt 5.6.