Qt Script

Faking a web browser environment in QtScript

Published Friday March 4th, 2011 | 10 Comments on Faking a web browser environment in QtScript
Posted in Internet, Qt, Qt Script

The following question was recently asked on qt-interest: How can I evaluate [some arbitrary] JavaScript code (that’s included in a web page, say), using QtScript? It’s an interesting topic, and I can’t resist elaborating. Short answer: You can’t. Long answer: It depends on what the script does — more precisely, which JavaScript APIs the script […]

Read More

Resolving QtScript's "Legacy" APIs

Published Thursday January 20th, 2011 | 2 Comments on Resolving QtScript's "Legacy" APIs
Posted in Qt, Qt Script

We want Qt to have the best possible JavaScript technology. To make this happen, we need the ability to make drastic changes to the implementation — even replacing it — underneath our public APIs. If an API exposes implementation details, that will cause us to limp. From our extensive work with existing JavaScript engines (JavaScriptCore […]

Read More

QtScript in 4.6

Published Monday November 23rd, 2009 | 21 Comments on QtScript in 4.6
Posted in Qt, Qt Script

As previously described (1, 2), Qt 4.6’s QtScript implementation is based on WebKit’s JavaScript engine, JavaScriptCore (you might’ve also heard it being referred to as “SquirrelFish” or “SquirrelFish Extreme”). This blog is an attempt to highlight the major implications of this “under-the-hood” change. Looking for bars in all the right places So, is QtScript any […]

Read More

Progress on the JavaScriptCore-based Back-end for QtScript

Published Tuesday July 14th, 2009 | 3 Comments on Progress on the JavaScriptCore-based Back-end for QtScript
Posted in Labs, Qt, Qt Script

As described in a previous blog entry, the day-to-day work on the JSC-based back-end for QtScript mainly revolves around getting lots of tiny (TINY!) tests to pass, ensuring that the observed behavior of the C++ API and JS runtime is still compatible. Well, things are starting to add up: The Qt bindings produced by the […]

Read More

SCXML now on public Gitorious, in sync with Qt mainline

Published Sunday June 21st, 2009 | 1 Comment on SCXML now on public Gitorious, in sync with Qt mainline
Posted in Qt, Qt Script, SCXML, XML

For those of you that enjoy writing relatively complex yet manageable apps without needing too much native code, the SCXML enabler that works on top of the Qt State Machine Framework is now active on public Gitorious, at http://qt.gitorious.org/qt-labs/scxml. We’re opening the repository after a few bug-fixes and improvements we found in other Git repositories […]

Read More

Remote QtScript Debugging Rises from its Cold Grave

Published Tuesday June 16th, 2009 | 2 Comments on Remote QtScript Debugging Rises from its Cold Grave
Posted in Labs, Qt, Qt Script, Qt Script Debug

Remember the times when the QtScript debugger was nothing but a maverick project on Trolltech Labs, and you could run the debugger as a stand-alone application? When the debugger was finally integrated into Qt for the 4.5 release, that feature had mysteriously disappeared. Well, today I’m happy to tell you it’s been resurrected — not […]

Read More

QtScript Bindings for Animations & States Classes

Published Thursday June 4th, 2009 | 14 Comments on QtScript Bindings for Animations & States Classes
Posted in Bindings Generator, Labs, Qt Script

As Eskil recently mentioned, the Animations & States classes are now part of qt/master. To celebrate, I’ve added some QtScript bindings for said classes to the QtScript generator project on gitorious; they can be found in the 4.6 branch. Since the C++ classes have been designed with scriptability and declarative usage in mind, the bindings […]

Read More

Qt Declarative UI

Published Wednesday May 13th, 2009 | 39 Comments on Qt Declarative UI
Posted in Qt, Qt Quick, Qt Script

We’ve hinted a bit about the Declarative UI part of Kinetic. Well, now it’s time to take a look. First, here is a video of QML in action: and some more here: calculator demo dial example listview recipes example To run the examples for real, either download a binary package including Qt Creator integration, or […]

Read More

QWebElement sees the light, do I hear a booyakasha!?

Published Tuesday April 7th, 2009 | 7 Comments on QWebElement sees the light, do I hear a booyakasha!?
Posted in Internet, Qt, Qt Script, WebKit, XML

One of the main missing parts of QtWebKit so far has been a proper way to inspect and manipulate the document structure. In JavaScript this is provided by the Document Object Model (DOM) bindings — giving you methods like getElementById(), createElement(), and insertBefore(). These methods were also accessible in Qt 4.4 and 4.5 though QWebFrame::evaluateJavaScript(), […]

Read More

Monster Evolution in Qt: Part 1 (using Qt Script)

Published Friday April 3rd, 2009 | 3 Comments on Monster Evolution in Qt: Part 1 (using Qt Script)
Posted in Graphics Dojo, Painting, Qt Script, WebKit

Speaking about JavaScript, Chrome Experiments launched some time ago show some very cool demos written in JavaScript, often combined with HTML 5 Canvas. My favorite is Monster Evolution, where a box morphs into a wildly rotating multi-tentacles monster, complete with lighting and motion blur. Written cleverly by Dean McNamee, this impressive script clearly demonstrates the […]

Read More
Get started today with Qt Download now