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. QT for android
Forum Updated to NodeBB v4.3 + New Features

QT for android

Scheduled Pinned Locked Moved Mobile and Embedded
2 Posts 2 Posters 684 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.
  • M Offline
    M Offline
    mareczek244
    wrote on last edited by
    #1

    Hi, I created application for android in QT Creator 5.3. I run application on device and some bottons, edittext is very very small. how to set all controls to automatically matched size and they were not small ???

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      You can use font.pixelSize to control the pixel size of your fonts. This of course is tricky if the app will be run on a high-DPI screen. On the C++ side you can leverage the "QScreen":http://qt-project.org/doc/qt-5/qscreen.html class to get more info about the actual pixel size on current machine, and react to that.

      (Z(:^

      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