[Development] Javascript exceptions from QML plugin

Pattyn, Kurt kurt.pattyn at barco.com
Sat Nov 16 16:15:55 CET 2013


Hi,

is there a way to emit Javascript exceptions from a C++ QML plugin or more general: what is the best way to indicate errors to QML from within a QML plugin?
The reason I ask, is because I am implementing the W3C WebSocket API (see http://www.w3.org/TR/websockets).
In several circumstances, the standard says to throw javascript exceptions.
Maybe an elegant solution could be to just expose an exception signal, and use that instead.

Any advice is welcomed.

Cheers,

Kurt
This message is subject to the following terms and conditions: MAIL DISCLAIMER<http://www.barco.com/en/maildisclaimer>



More information about the Development mailing list