900f2cb6f7
Remove pixelScale() in favor of logicalBaseDpi(). Compute scale factor based on logical DPI and logical base DPI, or optionally based on the physical DPI. Add policies for running the scale factor and adjusting the logical DPI reported to the application. The policies are set via environment variables: QT_SCALE_FACTOR_ROUNDING_POLICY=Round|Ceil|Floor|RoundPreferFloor|PassThrough QT_DPI_ADJUSTMENT_POLICY=AdjustDpi|DontAdjustDpi|AdjustUpOnly QT_USE_PHYSICAL_DPI=0|1 Done-with: Friedemann Kleint <Friedemann.Kleint@qt.io> Task-number: QTBUG-53022 Change-Id: I4846f223186df665eb0a9c827eaef0a96d1f458f Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
19 lines
272 B
Prolog
19 lines
272 B
Prolog
TEMPLATE = app
|
|
TARGET = highdpi
|
|
INCLUDEPATH += .
|
|
QT += widgets gui-private
|
|
CONFIG += cmdline
|
|
CONFIG += c++11
|
|
# Input
|
|
SOURCES += \
|
|
dragwidget.cpp \
|
|
main.cpp
|
|
|
|
HEADERS += \
|
|
dragwidget.h
|
|
|
|
RESOURCES += \
|
|
highdpi.qrc
|
|
|
|
DEFINES += HAVE_SCREEN_BASE_DPI
|