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. Window scaling on different screens.

Window scaling on different screens.

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 304 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.
  • P Offline
    P Offline
    Photoniker
    wrote on last edited by
    #1

    Hello,

    I made the following observation with my Qt application itom (Qt5.15.2, Windows 10). In the following image you can see two screenshots.

    • In the background, the application was started when a 4k monitor is defined as the main screen (scaling 125%). If I drag the plot window seen to the second monitor (fullHD, scaling 100%) I would expect that the widgets/icons should look slightly smaller.
    • In the foreground, the application was started when the fullHD monitor is defined as the main screen (scaling 100%).

    Now the question: Is the slight deviation in the size of the window content to be expected (e. g. axis labels)? Is there an explanation for this? I would expect that in both cases the window looks the same, since it is on the fullHD monitor with scaling 100%.

    aee7f860-e957-4397-8832-ac313cbd471d-image.png

    In the main function following settings are made in bothe cases:

    SetProcessDpiAwarenessContext(DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2); 
    QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
    QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
    

    Thanks

    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