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

handle Unix signals in the QML runtime

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • None
    • QML: Tooling
    • None

    Description

      There are various reasons you might want to reload a QML application, and it would be convenient to be able to do that without killing the process and starting another. (For live-coding for example, or when you know that some remote resource has changed.) It comes naturally to try to send SIGHUP to the qml executable to see what happens, and so far that simply makes it quit. So what if we install a signal handler to make it reload instead?

      http://doc.qt.io/qt-5/unix-signals.html describes one way that signal handlers can be implemented in Qt applications. I wonder if it really needs to involve a socket pair.

      We could think about doing other things with other signals too, if there are use cases.

      Attachments

        Issue Links

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

          Activity

            People

              srutledg Shawn Rutledge
              srutledg Shawn Rutledge
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes