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. Output message from Qt 6.10.0 when debugging code
Forum Updated to NodeBB v4.3 + New Features

Output message from Qt 6.10.0 when debugging code

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

    qt.qpa.window: SetProcessDpiAwarenessContext() failed: Access is denied.

    I guess it is probably harmless, but thought it was worth mentioning.

    1 Reply Last reply
    0
    • W Offline
      W Offline
      Wladimir Leuschner
      wrote last edited by
      #2

      SetProcessDpiAwarenessContext sets how the application will be notified when the DPI settings are changing. The default for Qt is DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2. I tried to run the widget gallery example with enabled logging rules and get qt.qpa.window: QWindowsContext::setProcessDpiAwareness QtWindows::DpiAwareness::PerMonitorVersion2 as logging line. Could you provide more information about the application and the setup (Windows version, how many screens)?

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

        Application is a standard widgets application using QMainWindow. Windows 11, 1 screen.

        1 Reply Last reply
        0
        • W Offline
          W Offline
          Wladimir Leuschner
          wrote last edited by
          #4

          I also use the same setup, but do not get the error. Does this happen with all applications?

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

            I develop under Visual Studio for my application normally, and had set the application manifest for High DPI awareness.

            It appears that if you do this and then call SetProcessDpiAwarenessContext() it will fail as above. Totally weird!

            What's embarrassing is I already reported this here some long while ago and had forgotten!!!

            https://forum.qt.io/topic/141236/unexpected-message-in-debug-log

            Blush!
            David

            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