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. addToJavaScriptWindowObject with Qt 5.5
Qt 6.11 is out! See what's new in the release blog

addToJavaScriptWindowObject with Qt 5.5

Scheduled Pinned Locked Moved QtWebEngine
5.5webenginejavascriptbridge
1 Posts 1 Posters 1.6k 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.
  • C Offline
    C Offline
    Clem
    wrote on last edited by
    #1

    Hi everyone,

    Here is my first post : one topic, but four questions :)

    I would like to access C++ Objects methods from javascript code ; in Qt 5.4 using QtWebKit I could just run the addToJavaScriptWindowObject method and everything was fine.

    I looked for an equivalent in QtWebEngine and found nothing, but somehow I believed this could be fixed with the release of Qt 5.5. Was I wrong ? (1)

    Do I really have to deal with QWebSockets to perform such a meaningless operation ? (2)

    Is this something that is likely to change in future releases ? (3)

    I think I read that the addToJavaScriptWindowObject method could not be transposed into QtWebEngine because everything was asynchronous with Chromium ; but if that is true, how is it possible to implement signals like javaScriptConsoleMessage ? (4)

    Thanks for any reply :)

    Looking forward to hearing from you,

    All the best,

    Clem

    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