Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. DPI problems

DPI problems

Scheduled Pinned Locked Moved Solved General and Desktop
8 Posts 2 Posters 2.4k 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.
  • Cobra91151C Offline
    Cobra91151C Offline
    Cobra91151
    wrote on last edited by
    #1

    Hi! My application has issues with high DPI monitors.

    I have set QApplication::setAttribute(Qt::AA_EnableHighDpiScaling, true); function, but it doesn't work. Some text is not fully visible or is not adaptive to high DPI. On standard 96 DPI (100% scale) everything works normal.
    Any suggestions how to fix this issue? Thanks.

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Did you place your texts in layouts ?

      Cobra91151C 1 Reply Last reply
      0
      • Cobra91151C Offline
        Cobra91151C Offline
        Cobra91151
        wrote on last edited by
        #3
        This post is deleted!
        1 Reply Last reply
        0
        • mrjjM mrjj

          Did you place your texts in layouts ?

          Cobra91151C Offline
          Cobra91151C Offline
          Cobra91151
          wrote on last edited by
          #4

          @mrjj

          Yes, I use layouts, but not for all features. I think there should be another approach dealing with high DPI.

          mrjjM 1 Reply Last reply
          0
          • Cobra91151C Cobra91151

            @mrjj

            Yes, I use layouts, but not for all features. I think there should be another approach dealing with high DPI.

            mrjjM Offline
            mrjjM Offline
            mrjj
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @Cobra91151

            When you do not use layouts, the text area remains the same under any resolution
            and that means that the scaling of font will be clipped as the area is not adjusted.
            So if there is not a layout to adjust the actual widget area (client area) then you must do it manually.

            Cobra91151C 2 Replies Last reply
            4
            • mrjjM mrjj

              @Cobra91151

              When you do not use layouts, the text area remains the same under any resolution
              and that means that the scaling of font will be clipped as the area is not adjusted.
              So if there is not a layout to adjust the actual widget area (client area) then you must do it manually.

              Cobra91151C Offline
              Cobra91151C Offline
              Cobra91151
              wrote on last edited by
              #6

              @mrjj

              I will try it and reply. Thanks.

              1 Reply Last reply
              1
              • mrjjM mrjj

                @Cobra91151

                When you do not use layouts, the text area remains the same under any resolution
                and that means that the scaling of font will be clipped as the area is not adjusted.
                So if there is not a layout to adjust the actual widget area (client area) then you must do it manually.

                Cobra91151C Offline
                Cobra91151C Offline
                Cobra91151
                wrote on last edited by
                #7

                @mrjj

                Thank you. Now the text is fully visible on high DPI monitors.

                mrjjM 1 Reply Last reply
                2
                • Cobra91151C Cobra91151

                  @mrjj

                  Thank you. Now the text is fully visible on high DPI monitors.

                  mrjjM Offline
                  mrjjM Offline
                  mrjj
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  @Cobra91151

                  Super. Thank you for reporting back.

                  1 Reply Last reply
                  2

                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved