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. Unexpected message in Debug log
Forum Update on Monday, May 27th 2025

Unexpected message in Debug log

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

    qt.qpa.windows: setProcessDpiAwarenessContext(DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2) failed: COM error 0x5 (Access is denied.)

    Did I do something wrong?

    D.

    1 Reply Last reply
    0
    • Chris KawaC Offline
      Chris KawaC Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on last edited by
      #2

      As described in the documentation this error means that the DPI setting is already set at the point of this call. This could happen, for example, if you have a manifest file in your project that sets DPI awareness mode, or if you call that function somewhere in your code before Qt does.

      Depending on what the previously set value is this can be harmless or something to look at. Qt tries to set DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2 mode, which is the preferred mode to achieve best scaling results on modern Windows. If something sets it to something else your app might exhibit scaling artifacts.

      1 Reply Last reply
      0
      • PerdrixP Offline
        PerdrixP Offline
        Perdrix
        wrote on last edited by Perdrix
        #3

        Thank you,

        I set in the application manifest, so if Qt is also trying to set it than that explains the message.

        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