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 Screen Scalability (small companents)

Android Screen Scalability (small companents)

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
6 Posts 2 Posters 1.1k Views
  • 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
    ZekDe
    wrote on last edited by A Former User
    #1

    Hi friends,
    I am new at Qt Creature C++.I have a problem for a few days in company, my companents are very small in my phone.I have to fix it to go forward.You guys can give me some simpe codes or good information ,but some codes is going to help a lot.

    D 1 Reply Last reply
    0
    • Z ZekDe

      Hi friends,
      I am new at Qt Creature C++.I have a problem for a few days in company, my companents are very small in my phone.I have to fix it to go forward.You guys can give me some simpe codes or good information ,but some codes is going to help a lot.

      D Offline
      D Offline
      Devopia53
      wrote on last edited by Devopia53
      #2

      @ZekDe

      In main.cpp, you must set the following attribute before Q(Gui)Application is constructed.

      QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);

      Or you can set the QT_AUTO_SCREEN_SCALE_FACTOR environment variable to 1.

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

        I did but this time ,icons seems very large

        1 Reply Last reply
        0
        • Z Offline
          Z Offline
          ZekDe
          wrote on last edited by
          #4

          resolution >> 1080x1920 443 dpi(casper m2 phone) ,but it is ok in other device(Tablet) ,is it normal?

          D 1 Reply Last reply
          0
          • Z ZekDe

            resolution >> 1080x1920 443 dpi(casper m2 phone) ,but it is ok in other device(Tablet) ,is it normal?

            D Offline
            D Offline
            Devopia53
            wrote on last edited by
            #5

            @ZekDe

            If so, try adding this attribute(Qt::AA_UseHighDpiPixmaps).

            1 Reply Last reply
            0
            • Z Offline
              Z Offline
              ZekDe
              wrote on last edited by
              #6

              I have tried , but no changed,this is no solution.I dont know what I will do ,is it a bug?I sent an e-mail Qt website.

              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