Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Scaling font size to low on android
Forum Updated to NodeBB v4.3 + New Features

Scaling font size to low on android

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
5 Posts 3 Posters 1.4k Views 3 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.
  • mit_cruzeM Offline
    mit_cruzeM Offline
    mit_cruze
    wrote on last edited by
    #1

    I am building an app on Qt Creator 4.0.2 (based on Qt 5.7) on ubuntu 16.04 for Android. The fonts in UI does not scale as per phone screen. Size of fonts in an App remains same as in desktop. I want to rescale font size to small (as per phones) .
    I tried with :
    QApplication::setAttribute(Qt::AA_DisableHighDpiScaling);

    jsulmJ 1 Reply Last reply
    0
    • mit_cruzeM mit_cruze

      I am building an app on Qt Creator 4.0.2 (based on Qt 5.7) on ubuntu 16.04 for Android. The fonts in UI does not scale as per phone screen. Size of fonts in an App remains same as in desktop. I want to rescale font size to small (as per phones) .
      I tried with :
      QApplication::setAttribute(Qt::AA_DisableHighDpiScaling);

      jsulmJ Online
      jsulmJ Online
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @mit_cruze Please note: "Qt Creator 4.0.2 (based on Qt 5.7)" does not say anything about the Qt version you're using.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • mit_cruzeM Offline
        mit_cruzeM Offline
        mit_cruze
        wrote on last edited by
        #3

        ok . How can I know? Can you please answer my question?

        jsulmJ 1 Reply Last reply
        0
        • mit_cruzeM mit_cruze

          ok . How can I know? Can you please answer my question?

          jsulmJ Online
          jsulmJ Online
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @mit_cruze Well, you should know what you installed. How did you install Qt?
          Regarding your question: I don't have an answer, maybe somebody else has.

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          1
          • GTDevG Offline
            GTDevG Offline
            GTDev
            wrote on last edited by GTDev
            #5

            Hi,
            you can have a look at V-Play Engine for Qt-based mobile Apps and Games.

            The available QML components are already designed to support different screen resolutions and densities of tablets, phones and desktop devices. In addition it is possible to specify device-independent sizes for custom QML items with the usage of e.g. the App::dp() method, or sp() for font sizes.

            For a short guide about handling different screens and devices with the engine, please see the Resolution and Device Independence Tutorials.

            Cheers,
            GT

            Senior Developer at Felgo - https://felgo.com/qt

            Develop mobile Apps for iOS & Android with Qt
            Felgo is an official Qt Technology Partner

            1 Reply Last reply
            1

            • Login

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