Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-69956

QWebEngineView not working from js

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • None
    • 5.11.1
    • WebChannel, WebEngine
    • None
    • macOS, Windows

    Description

      I need to invoke a dialog from the JS side, which contains a qwebengineview to display the video, but it does not work properly.

       

      MainWindow contains a QWebEngineView A for the main UI, it is a local web page.

      And Dialog also contains a QWebEngineView B, it is used as a H5 video player.

      My requirement is invoke B from within A.

       

      please see the attachments for details.

      Attachments

        1. demo.zip
          11 kB
        2. not_work_from_js.png
          not_work_from_js.png
          36 kB
        3. works_from_native.png
          works_from_native.png
          155 kB
        4. Bridge.cpp
          0.3 kB
        5. Bridge.h
          0.3 kB

        Activity

          People

            qt_webengine_team Qt WebEngine Team
            wukong Justin Wu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: