[texworks] SCRIPTING: KDE's use of QtScript utilses intersting and useful features

Stefan Löffler st.loeffler at gmail.com
Wed Jul 7 17:28:53 CEST 2010


Am 2010-07-06 07:08, schrieb Paul A Norman:
> While hunting for any solutoins to using QUrl in QtScript came accross this ....
> It illustrates some interesting approaches that KDE have taken in
> implementing QtScript
> http://forum.kde.org/viewtopic.php?f=117&t=74593
> This piece looked very straightforwardly useful:
>           Importer.loadQtBinding( "qt.core" );
>           Importer.loadQtBinding( "qt.xml" );
>           user = "skerit"
>           xmlUrl = new QUrl( "http://ws.audioscrobbler.com" );
>           http  = new QHttp;
>           data  = new QIODevice;
>           doc    = new QDomDocument("doc");
>           etc ...
> I imagine its complex to implement but mention it in case it is not.

In principle this would be possible in QtScript, but not generally
(i.e., not in Lua or Python, AFAIK). In addition, since these classes
are not derived of QObject, they might not fit well into the rest of the
current framework (this is part of the problem why this wouldn't work in


More information about the texworks mailing list