Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

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

    QML and Qt Quick
    windows10 window
    1
    2
    445
    Loading More Posts
    • 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
      robro last edited by

      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 Reply Quote 0
      • R
        robro last edited by

        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 Reply Quote 0
        • First post
          Last post