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. Auto size android
Qt 6.11 is out! See what's new in the release blog

Auto size android

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

    How to make a QPushButton is android's largest auto or adjusted

    1 Reply Last reply
    0
    • X Offline
      X Offline
      Xander84
      wrote on last edited by
      #2

      You need to scale the button size like Android apps do. I think you mean that, right?
      you can use the screen DPI value to scale your app in a device independent manner if you want that. e.g. with "QScreen::physicalDotsPerInch":http://qt-project.org/doc/qt-5/qscreen.html#physicalDotsPerInch-prop

      1 Reply Last reply
      0
      • T Offline
        T Offline
        topocc
        wrote on last edited by
        #3

        yes, Xander84

        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