Debian Codegraph @

tests/unit/custom_qpa/README

raw
1 In order to correctly test Qt's Device Pixel Ratio system in a
2 unit test, one needs to have the QPA plugin for the platform
3 support reading the DEVICE_PIXEL_RATIO environment variable.
4
5 These unit tests use the "minimal" QPA plugin, which
6 unfortunately does not support that variable.
7
8 The contents of this directory is a near-complete duplicate of
9 "minimal" QPA plugin source from Qt, with added support for the
10 DEVICE_PIXEL_RATIO environment variable.
11
12 One can use this plugin as follows:
13
14 DEVICE_PIXEL_RATIO=2 QT_QPA_PLATFORM_PLUGIN_PATH=$PWD \
15 QT_QPA_PLATFORM=custom qmlscene ~/tmp.qml