Information cut off by narrow columns in HiDPI scaled desktop
taprobane99 opened this issue · 3 comments
Font size is too small, and the first 4 columns too narrow on my system (KDE plasma, 125% scaling, 144 dpi font) cutting off some of the information displayed.
Is is possible to either scale correctly with font DPI, or have adjustable font size in the GUI and adjustable column width?
Thank you for the report. A couple questions. Is the font size too small everywhere, or just in the Features view. Are you using the 0.2.0-dev branch, which was close to release, or the 0.1.2 release, which is quite ancient? If the latter, can you confirm the problem on 0.2.0-dev?
I have to admit that this project is the first time I've used Qt, and it's been a struggle to get things to format adequately. ddcui could use input from someone who's fluent in Qt.
I have looked into the hidpi issue. A a proper general solution is non-trivial and would greatly delay upcoming release 0.2.0. For now, I suggest that you experiment with setting environment variables before executing ddcui. The environment variables are
QT_AUTO_SCREEN_SCALE_FACTOR, QT_SCALE_FACTOR, QT_SCREEN_SCALE_FACTORS.
Qt 5.14 saw significant enhancements to hidpi support, and added the following environment variables: QT_ENABLE_HIDPI_SCALING, QT_DEVICE_PIXEL_RATIO.
Notes:
- QT_AUTO_SCREEN_SCALE_FACTOR and QT_ENABLE_HIDPI_SCALING are boolean, only the values 1 or 0 make sense.
- Scaling factors need not be an integer, but should be (approximately) a multiple of 1/6, e.g. 1.33, to avoid artifacts.
- QT_SCREEN_SCALE_FACTORS is a comma delimited list of factors the to apply to each screen. You will have to experiment to find the proper ordering. Note that the meaning of the factors values here is not the same as QT_SCALE_FACTOR.
Examples:
$ QT_ENABLE_HIDPI_SCALING=1 ddcui
$ QT_SCALE_FACTOR=1.33 ddcui
$ QT_SCREEN_SCALE_FACTORS=1,2
For more detailed documentation, see HighDPIDisplays