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

Nicer API for handling time-outs / long-running scripts

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Invalid
    • Affects Version/s: 4.3.0
    • Fix Version/s: None
    • Component/s: Qt Script
    • Labels:
      None

      Description

      To be able to interrupt a long-running script, quite a bit of set-up and house-keeping needs to be done on the application side; see attached main.cpp.
      In addition to requiring a lot of set-up, relying on QScriptEngine::setProcessEventsInterval() means that any Qt application event will be processed, which might not be what you want. It should be possible to interrupt a script without the side-effect of event processing.

      It would be nice if QtScript provided a nicer API for dealing with long-running scripts, e.g. similar to QWebPage::shouldInterruptJavaScript().

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              kenthans Kent Hansen (Inactive)
              Reporter:
              kenthans Kent Hansen (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes