Bad fonts scaling in QML for different screens
Unsolved
General and Desktop
-
Hello There,
I was developing an application in QML and tested it only on my host machine for a while. Eventually I deployed it to the target, which is an x86 64 bit linux machine with screen of size 800 x 480 pixels. The application works as expected apart from one thing: The fonts are really small, unlike on the host. I set all of the fonts used in QML by usingpointSize
property.
Is this valid when I need the application to run correctly on 800 x 480 screen but 1920 x 1080 as well?
I would appreciate all help. -
Hi
Maybe you can tweak it using
QT_SCALE_FACTOR
http://doc.qt.io/qt-5/highdpi.htmlSetting as points should be correct but maybe the calculation for that screen
gives less size then expected. (800x480 is really low res)