To whom it may concern:
Recently, we intended to relay a couple of Linux Signal such as SIGINT and SIGTERM to the QT application so that it can exit gracefully when the ctrl-C is pressed or the process is killed.
We were able to update the widgets/widgets/calculator example to test this concept following the link http://doc.qt.io/qt-5.5/unix-signals.html.
We were able to test this modification at QT 5.4 and QT 5.5/Wayland successfully. But the same failed at QT5.5/eglfs mode.
We then realized there was a recent patch f6e6ef46b382e1a7f827afc5f70ce6e5deaa7e86 to relay and process Signals at QT core and we are able to trace the code up to “emit interrupted();” which seems to trigger some kind of “activated” operation.
It seems to us that the QT core may be able to pass those signal to the end user. What do we need to do to receive those signal at the user QT program? Your advice will be highly appreciated!