这是indexloc提供的服务,不要输入任何密码
Skip to content

Possible to get/call webview event's manually through window code in node? #283

@conrad10781

Description

@conrad10781

I was investigating using Thrust as a replacement for a utility that we built in Qt using the QWebView. I'm not sure if I'm overlooking something, but is it possible to interact with the Javascript engine from the node.js javascript?

I'm trying to avoid rewriting large portions of this, so I'm battling issues now where all of the code/logic is in the C++, and we're basically just using the QWebView to render HTML.

To be more specific, it would be great if something like this could be done:

require("node-thrust")(function(err, api) { 
    window = api.window({ root_url: "/index.html" });
    window.show();
    ...
    window.on("load", function(err, ...){
        ...
        $(this).executeScript("alert('Hi');");
    });
});

I take it this is not possible to do with Thrust? I would need to modify all of our files to utilize the webview tags?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions