[Qt-interest] QtScript: Returning exception on invalid properties

Dan redalastor at gmail.com
Sun Dec 20 05:34:22 CET 2009


I am making scriptable QObjects and setting a few scriptable properties. I
would like to throw javascript errors when the user gives them bogus values
bug I can't figure out how.

If I simply used a function that's not a member of a class, it would be easy
but from a class member, I really don't find anything in the doc. Is it
possible?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091219/bdcf2133/attachment.html 


More information about the Qt-interest-old mailing list