Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QtWebEngine
  4. WebEngineView call signal from website.
QtWS25 Last Chance

WebEngineView call signal from website.

Scheduled Pinned Locked Moved Unsolved QtWebEngine
2 Posts 2 Posters 466 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.
  • W Offline
    W Offline
    Wowalive
    wrote on last edited by
    #1

    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
    0
    • elicatE Offline
      elicatE Offline
      elicat
      wrote on last edited by elicat
      #2

      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
      0

      • Login

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