On Wednesday 22 July 2009, Patrick Aljord wrote: > Hey all, > > I've been following the Getting Started tutorial on techbase and it works > great. Since then, I've been trying to use QHttp and other Qt classes in my > main.js file but the plasmoid fails. I'm trying to download an xml file > such as in this amarok script example: > http://amarok.kde.org/forum/index.php?topic=17084.0 > > Something like that:
in amarok js bindings are complete and autogenerated. for now in plasma hey are just a tiny subset and you can call only stuff explicitly exported by libplasma probably in the future we will have complete bindings too > > Importer.loadQtBinding( "qt.core" ); > Importer.loadQtBinding( "qt.xml" ); > > xmlUrl = new QUrl( "http://ws.audioscrobbler.com" ); > http = new QHttp; > > Any idea why it fails? By the way, how do I get any debugging? When I > do "plasmoidviewer ." I just get the plasmoid with the "Script > initialization failed" message, nothing more. > > Thanks in advance > > Pat > _______________________________________________ > Plasma-devel mailing list > Plasma-devel@kde.org > https://mail.kde.org/mailman/listinfo/plasma-devel -- Marco Martin _______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel