HiDPI support

Asked by Sherif on 2017-08-16

I am using qpdfview on Archlinux running on Dell XPS13 9343. Unfortunately the menu sizes are very tiny that I hardly able to read anything. Is there HiDPI support in qpdfview. Is there any command line options to enable that?

Question information

Language:
English Edit question
Status:
Solved
For:
qpdfview Edit question
Assignee:
No assignee Edit question
Solved by:
Adam Reichold
Solved:
2017-08-16
Last query:
2017-08-16
Last reply:
2017-08-16
Best Adam Reichold (adamreichold) said : #1

Hello Sherif,

qpdfview's rendering of documents should be device-pixel-ratio-aware, i.e. the pages and their content should be scaled correclty, in recent versions. For the UI itself, you may need to convince Qt to adjust their sizes, e.g. by setting the environment variable QT_AUTO_SCREEN_SCALE_FACTOR=1 when running the application. Please compare https://doc.qt.io/qt-5/highdpi.html for the full list of settings that one can adjust.

Best regards, Adam.

Sherif (silentquote) said : #2

Hi Adam,

Thanks for the hint. QT_AUTO_SCREEN_SCALE_FACTOR=1 did not solve my problem. I manually picked the scaling factor using QT_SCALE_FACTOR=2 and it looks great now. :)