Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-1741

It would be handy if QtScript had a fast and easy way to handle native C++ exceptions

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Invalid
    • Icon: P3: Somewhat important P3: Somewhat important
    • Some future release
    • 4.3.4
    • Qt Script
    • None

      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.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            kenthans Kent Hansen (Inactive)
            sanonymous Nokia Qt Support (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes