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. Qt scales incorrectly for different resolution even with DPI aware
Forum Updated to NodeBB v4.3 + New Features

Qt scales incorrectly for different resolution even with DPI aware

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 828 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.
  • vivianV Offline
    vivianV Offline
    vivian
    wrote on last edited by
    #1

    Hello,
    I have an issue with the scaling of the desktop application. I have attached the screenshot at the end.
    Used the following but

    1. ::setAttribute(Qt::AA_UseHighDpiPixmaps)
    2. etAttribute(Qt::AA_EnableHighDpiScaling); and DisableHighDpiScaling
    3. qputenv("QT_AUTO_SCREEN_SCALE_FACTOR", "1")
    4. putenv("QT_SCALE_FACTOR", "1");

    Not quite sure where the problem is and how to debug this situation. So any suggestions or help is appreciated. Thank you.
    The actual:
    0_1503402483377_74188125-aeee-481a-904a-ef7f9c8c6fb2-image.png

    After changing the resolution:
    0_1503402513871_395acd2a-8f95-477f-a424-940511575eac-image.png

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

      Hi
      You mean the text is cut off in the list to left?

      vivianV 1 Reply Last reply
      0
      • mrjjM mrjj

        Hi
        You mean the text is cut off in the list to left?

        vivianV Offline
        vivianV Offline
        vivian
        wrote on last edited by
        #3

        @mrjj Yes, if I move the Window from one screen to another as well I see the same issue. It also exists in the menu bar as you can see in the screenshots.

        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