[Qt-interest] Noob Alert! / confused about Qt Script / QSA / KJS / Lua / Python etc..

Andreas Pakulat apaku at gmx.de
Thu Oct 22 08:33:06 CEST 2009


On 22.10.09 01:52:37, Patrick wrote:
> I am just learning QT and I am really just at an overview stage. There
> seems to be quite a few ways in which someone could extend their basic
> C++ code. Am I correct that QSA and KJS are now dead ends that are being
> replaced with Qt Script?

QSA: Yes.
KJS: No, it still lives on in khtml KDE's html viewer. And it never was in
Qt anyway

> If so is QT script ready for production use, it appears to be part of QT
> labs making me wonder if it is still beta software?

Where did you get that from? QtScript is part of QtCore since at least 4.4.
 
> Could I also extend an application with Lua or Python and do the same
> sort of things without using Qt Script? There are bindings for each
> which makes me wonder if someone could build a hybrid C++/PyQt(or Lua
> etc..) App.  Are there benefits to each approach? I have been looking
> through the bindings page:

AFAIK the Python (no idea about Lua) bindings allow for more customization
on the pure-python side (i.e. subclasses etc.), which isn't that easy with
QtScript. 

PyQt is pretty popular and with sip (the binding-generator that PyQt uses)
its I think rather easy to add additional bindings for custom C++ classes
that you might have. But most people simply do everything in PyQt and
nothing in C++ anymore.

Andreas

-- 
You will triumph over your enemy.



More information about the Qt-interest-old mailing list