Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Open external window in windows from QML application: SetProcessDpiAwareness(2) failed
QtWS25 Last Chance

Open external window in windows from QML application: SetProcessDpiAwareness(2) failed

Scheduled Pinned Locked Moved Solved QML and Qt Quick
windows10window
2 Posts 1 Posters 687 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.
  • R Offline
    R Offline
    robro
    wrote on last edited by
    #1

    Hello,

    I am writing a QML application in which I call C++ code.
    This code opens normally an external non Qt based (I think) window.
    If I execute the code from a console application everything works fine, but if I try to open the window from QML nothing opens and I get the following error:

    SetProcessDpiAwareness(2) failed: COM error 0xffffffff80070005  (Unknown error 0x0ffffffff80070005), using 2
    

    Is there a possibility to fix that?
    I already googled about the problem, but have not found a solution.

    Thank you very much!

    1 Reply Last reply
    0
    • R Offline
      R Offline
      robro
      wrote on last edited by
      #2

      Ok, I have not found a solution but a workaround.

      I have to open and close the external window before my QML gui is opened.
      So I do this in my main before the QML engine loads the QML file.
      Then I pass the necessary information from the external window via pointers to my GUI.

      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