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

Details

    • Suggestion
    • Resolution: Invalid
    • P3: Somewhat important
    • Some future release
    • 4.3.4
    • Qt Script
    • 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

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes