Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. Invoke JavaScript callback from QT with structure/object argument
Forum Updated to NodeBB v4.3 + New Features

Invoke JavaScript callback from QT with structure/object argument

Scheduled Pinned Locked Moved Unsolved Qt WebKit
1 Posts 1 Posters 877 Views 2 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.
  • A Offline
    A Offline
    amurali9
    wrote on last edited by
    #1

    Hi,

    I am using QT 5.5 version.

    I need to invoke javascript callback function from QT plugin with Structure/Object as argument. I could not modify HTML Application since it is not in our scope.

    HTML application code snippet

    var obj1 = document.getElementById('obj1_id'); //QT plugin object 1
    var obj2 = document.getElementById('obj2_id'); //QT plugin object 2

    obj2.init(obj1,callback); //QT API

    function callback(arg1)
    {
    if ( obj1 === arg1){
    // SUCCESS
    else
    // FAILURE
    }

    QT plugin code snippet

    class::init(QWebElement obj, QString callback)
    {
    //need to Invoke callback with obj argument
    }

    Can any one help me on this?

    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