arturadib / node-qt

C++ Qt bindings for Node.js
http://documentup.com/arturadib/node-qt
Other
1.62k stars 172 forks source link

How to open QTWebkit Windows? #9

Closed jaxcore closed 12 years ago

jaxcore commented 12 years ago

I'll tell you my number 1 request, and a use-case that I think could be a game changer.

Forget all the QT widgets. Just focus on a way to have NodeJS be able spawn QT application windows that are an instance Webkit pointing to the URL of my choice.

var qtwebkit = require('qtwebkit'); var window = qtwebkit.open('http://myurl'); window.load('http://myurl/newpage.html'); window.close();

That way I can run an NodeJS service in the background, and send messages to it to spawn windows of my choosing. And I'd like this to be cross platform (Windows, Mac, Linux).

Developing desktop apps in this manner could obliterate Java as a universal write-once run-everywhere platform.

tlhunter commented 12 years ago

@jaxcore: you might be interested in the https://github.com/maccman/macgap project, although it unfortunately only works in OS X for now.

arturadib commented 12 years ago

Agreed. Care to write some bindings? :)

ghost commented 12 years ago

Didn't quite finish it https://github.com/Benvie/node-qt/blob/accessors/src/QtWebkit/qwebview.cc

tianshuo commented 12 years ago

Is this done yet?

jaxcore commented 12 years ago

This developer has essentially done what I've wanted by directly interfacing with the Chromium libraries without the need for QT:

http://appjs.org/

This is probably a superior solution for a native browser wrapper. It's a bit buggy, but one hell of a good start. I'm very impressed.

ghost commented 12 years ago

I my work has gone into that instead.