Qt Forum

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

    Unsolved WebEngineView call signal from website.

    QtWebEngine
    2
    2
    324
    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.
    • W
      Wowalive last edited by

      Hi,

      is it possible to call a signal or method from a website within WebEngineView which calls a function in qt/qml.

      I tried to add a click listener to a button but i can't react to the result.

      onWindowsCloseRequested reacts to window.close(). Is there a similar slot for custom calls?

      Hope you can help me.

      Regards,

      1 Reply Last reply Reply Quote 0
      • elicat
        elicat last edited by elicat

        I hope I understand your problem.
        I raised it using the window.open method with javascript. I used a fake link (example: www.prrkktt.pp) so i active the (signal) onNewViewRequested event in the QML file that contains the webengine.
        Attention, since reference is made to a fake url it generates error in the log.

        Saluti, Gianfranco Elicat

        1 Reply Last reply Reply Quote 0
        • First post
          Last post