Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Bad fonts scaling in QML for different screens

Bad fonts scaling in QML for different screens

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 329 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Bremenpl
    wrote on last edited by
    #1

    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 using pointSize 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.

    lprzenioslo.zut.edu.pl

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by mrjj
      #2

      Hi
      Maybe you can tweak it using
      QT_SCALE_FACTOR
      http://doc.qt.io/qt-5/highdpi.html

      Setting as points should be correct but maybe the calculation for that screen
      gives less size then expected. (800x480 is really low res)

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved