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. communication from two webengine
Qt 6.11 is out! See what's new in the release blog

communication from two webengine

Scheduled Pinned Locked Moved Unsolved QtWebEngine
1 Posts 1 Posters 523 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.
  • elicatE Offline
    elicatE Offline
    elicat
    wrote on last edited by aha_1980
    #1

    Hi, I'm working with a QT-QML-WEBENGINE project.
    When I open a QML file connecting a webengine object I can interact with QT / C ++ with the SLOT and SIGNAL system.
    Through the onNewViewRequested event, started with window.open, I can act in a QML position through "Connections {target:".
    Everything ok but ...
    I have not found a way to get back to the control of the webengine.

    Example:
    in 2 qml files I connect webengine and in each one I load a html page controlled by specific javascript.
    main.qml
         tabslipt
             primo.qml (component of main.qml)
                 - pageA.html
                    - javascript_pageA.js
             secondo.qml (component of main.qml)
                 - pageB.html
                    - javascript_pageB.js

    If I'm on pageB I would like to start a function in javascript_pageA.js
    If I'm on pageA I would like to start a function in javascript_pagieB.js

    Is it possible according to you?
    Thanks in advance

    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