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.3k 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.
  • P Offline
    P Offline
    Perdrix
    wrote on 4 Dec 2022, 11:43 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
    • C Offline
      C Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on 4 Dec 2022, 15:27 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
      • P Offline
        P Offline
        Perdrix
        wrote on 4 Dec 2022, 16:04 last edited by Perdrix 12 Apr 2022, 16:04
        #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

        1/3

        4 Dec 2022, 11:43

        • Login

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