Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt WebView : trigger QML element/ property from javascript inside an HTML file

Qt WebView : trigger QML element/ property from javascript inside an HTML file

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
2 Posts 2 Posters 701 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.
  • K Offline
    K Offline
    kerem
    wrote on last edited by
    #1

    Hi,

    I am trying to make an hybrid app with QT Webview component. I can access HTML javacript code from QML with runJavaScript function of Qt Webview.

    What about reverse comminucation? Triggering QML component from HTML file? When I click HTML button then I want to trigger/invoke any QML component/property.

    Is that possible? Can I do this job with Qt WebChannel or not?

    Thanks in advance.

    1 Reply Last reply
    0
    • P Offline
      P Offline
      PavelIgorevich
      wrote on last edited by
      #2

      I think the best way is to use WebChannel communication - http://doc.qt.io/qt-5/qwebchannel.html

      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