Throwing a script exception from C++ (QtQuick 2.0)
QML and Qt Quick
1
Posts
1
Posters
947
Views
1
Watching
-
wrote on 20 Feb 2013, 09:38 last edited by
With Qt4/QtQuick1.x, after obtaining a pointer to QScriptEngine, i was throwing exceptions with
@scriptEngine->currentContext()->throwError("Error string");@
However new QJSEngine class provides no such facilities. I've tried "QJSEngine::evaulate()" function but it has no effect. Any ideas?
1/1