Details
-
Suggestion
-
Resolution: Invalid
-
P3: Somewhat important
-
4.3.4
-
None
Description
It would be handy if QtScript had a fast and easy way to handle native C++ exceptions that can be caused by the classes that are wrapped int a QScriptEngine - so that the interpreter will gracefully end its run. The only solution found so far is to catch all C++ exceptions in the wrapped classes and convert them to soft script exceptions via the "throwError" method. A general interface to handle C++ exceptions caused by wrappers in QScriptEngine or QScriptContext would be great. Maybe a similar approach as used for QApplication::notify.
Attachments
Issue Links
- relates to
-
QTBUG-15374 When throwing an exception from a slot in C++ code that is called from a script then it is not possible to catch the exception in C++ code
-
- Closed
-