[Qt-interest] Qt programs that I can run in browser
Bob Hood
bhood2 at comcast.net
Sun Feb 20 20:41:46 CET 2011
On 2/20/2011 12:08 PM, Nicholas Shatokhin wrote:
> Sun, 20 Feb 2011 19:28:30 +0200 було написано Bob Hood <bhood2 at comcast.net>:
>
>> On 2/20/2011 9:26 AM, Nicholas Shatokhin wrote:
>>> But, Wt is a C++ to and compiling to JavaScript.
>>
>>> From the Wt main page:
>>
>> "For example, if available, Wt will maximally use JavaScript, Ajax and even
>> WebSockets, but applications developed using Wt will also function correctly
>> when JavaScript is not available. Wt will start with a plain HTML/CGI
>> application and progressively enhance to a rich Ajax application if possible.
>> With Wt, security is built-in and by default."
>>
>> I think you're misunderstanding what Wt is doing. Your C++ is not compiled
>> into javascript. It is compiled into native binary, and Wt generates the
>> necessary HTML/javascript/etc. in order to make your C++ function on the Web
>> page as "cgi-bin".
>>
>> qt-interest
>
> Ok, In Qt4 can I do that?
>
I would imagine that you could, however, what think you are getting with Wt is
a library that not only provides GUI elements designed specifically for use on
web pages, but also that deals with wrapping the C++ code as domain-centric
plug-ins (look at the examples provided via the main Wt page). You'd have to
provide such a layer yourself in order to "directly" use Qt C++ code in the
same fashion.
However, you might want to check out Qt's QML module, which uses JavaScript as
its scripting language. I'm not really that familiar with it (so somebody may
want to step in here and correct me), but it might provide the bridge you are
seeking between Qt and HTML.
More information about the Qt-interest-old
mailing list