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. How to get default font size on android?
Forum Updated to NodeBB v4.3 + New Features

How to get default font size on android?

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 2 Posters 1.6k 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.
  • Z Offline
    Z Offline
    zword
    wrote on last edited by
    #1

    I tried to use:
    QFont font; font.pointSize();
    it returns 19, but it's too small and i think it is not the default font size.

    Help, please.
    Thanx

    p3c0P 1 Reply Last reply
    0
    • Z zword

      I tried to use:
      QFont font; font.pointSize();
      it returns 19, but it's too small and i think it is not the default font size.

      Help, please.
      Thanx

      p3c0P Offline
      p3c0P Offline
      p3c0
      Moderators
      wrote on last edited by
      #2

      @zword May be using QFontInfo

      QFont font;
      QFontInfo fi(font.defaultFamily());
      fi.pointSize();
      

      157

      1 Reply Last reply
      0
      • Z Offline
        Z Offline
        zword
        wrote on last edited by zword
        #3

        No, didn't help.
        fi.pointSize returned even smaller value: 12

        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