On May 20, 2010, Nikhil Marathe wrote:
>     void addEventListener(const QString &name, const QScriptValue
> &function);
> 
> implying that QScriptValue is used to 'collect' a function definition
> (a callback) in the C++<->QtScript bridge. But when I am trying my own
> code with something similar, my function is not called.
> 
> The script engine throws an exception that "unknown type `QScriptValue'"

you're not being specific enough for me to be able to be helpful, i'm afraid.

what does your javascript look like that is creating this exception?
what does your implementation of addEventListener look like in the C++?
how are you exporting addEventListener into the QtScript runtime?

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Qt Development Frameworks

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel

Reply via email to