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. Android: Text size is much smaller compared to Desktop Application (QML)
Forum Updated to NodeBB v4.3 + New Features

Android: Text size is much smaller compared to Desktop Application (QML)

Scheduled Pinned Locked Moved Mobile and Embedded
7 Posts 3 Posters 4.2k Views 1 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.
  • D Offline
    D Offline
    DerMas
    wrote on last edited by
    #1

    I made a QT Quick Application, which uses a fixed size for my developer tablet (the tablets resolution). So if I run this application on ubuntu, it is a window with the same size that the android application has on the tablet.
    For manipulating the size of text, I use "font.pointSize". But the size of the text on the desktop (ubuntu) and the android app is different. On the android app it is smaller.

    Is this an issue with android apps? Should I use another attribute for text size?

    1 Reply Last reply
    0
    • D Offline
      D Offline
      DerMas
      wrote on last edited by
      #2

      Ok, kind of fixed when using pixelSize instead of pointSize. There still seems to be a slight difference, but it is barely noticeable.

      1 Reply Last reply
      0
      • F Offline
        F Offline
        fatinbrain
        wrote on last edited by
        #3

        Offtopic
        Hmm...
        Digia's Quick Forecast has small font size on my device(LG P350). Does it have same problem?..

        1 Reply Last reply
        0
        • S Offline
          S Offline
          s.frings74
          wrote on last edited by
          #4

          The default font size of a QTexteditor looks fine on both Linux and Android. In both cases, the font appear with almost equal size.

          See "this photo":http://stefanfrings.de/temp/DSCF0431.JPG

          On Linux, the default is pointSize 11.
          On Android, the default is pixelSize 24, which equals pointSize 17.

          When I create a new QFont with any fixed pointSize value (e.g. 12), then the text apears much smaller on Android than on Linux.

          Shouldn't be the point size device-independent? Is this a bug or did I miss something?

          Qt 5.4, Android 4.2, Ubuntu 14.04

          1 Reply Last reply
          0
          • S Offline
            S Offline
            s.frings74
            wrote on last edited by
            #5

            The default font size of a QTexteditor looks fine on both Linux and Android. In both cases, the font appear with almost equal size.

            See "this photo":http://stefanfrings.de/temp/DSCF0431.JPG

            On Linux, the default is pointSize 11.
            On Android, the default is pixelSize 24, which equals pointSize 17.

            When I create a new QFont with any fixed pointSize value (e.g. 12), then the text apears much smaller on Android than on Linux.

            Shouldn't be the point size device-independent? Is this a bug or did I miss something?

            Qt 5.4, Android 4.2, Ubuntu 14.04

            1 Reply Last reply
            0
            • S Offline
              S Offline
              s.frings74
              wrote on last edited by
              #6

              I opened a bug report, because I'm 95% sure that this does not work as intended.

              1 Reply Last reply
              0
              • S Offline
                S Offline
                s.frings74
                wrote on last edited by
                #7

                I opened a bug report, because I'm 95% sure that this does not work as intended.

                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